/* Step 2: Text Layout Selection Styles */

.layout-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.layout-option-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.layout-option-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.layout-option-card.active {
    border-color: #3498db;
    background: #f8fafe;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.layout-preview {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}

.layout-mockup {
    background: #666;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 9px;
    position: relative;
    /* Default flat stone dimensions */
    width: 100px;
    height: 60px;
    padding: 8px;
}

.layout-name {
    font-weight: bold;
    font-size: 8px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.layout-name.large {
    font-size: 9px;
    font-weight: 900;
    line-height: 1.1;
}

.layout-dates {
    font-size: 6px;
    opacity: 0.9;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.layout-message {
    font-size: 6px;
    font-style: italic;
    opacity: 0.8;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.layout-spacer {
    flex: 1;
}

.layout-companion-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 4px;
}

.layout-companion-row .layout-name,
.layout-companion-row .layout-dates {
    flex: 1;
    text-align: center;
}

/* Stone shape styles for layout mockups with accurate dimensions and proportions */
.stone-shape-flat {
    border-radius: 4px;
    background: #666;
    width: 120px;
    height: 50px;
    padding: 6px 10px;
}

.stone-shape-bevel {
    border-radius: 4px;
    background: linear-gradient(135deg, #777 0%, #555 50%, #666 100%);
    border: 1px solid #555;
    box-shadow: inset 2px 2px 4px rgba(255,255,255,0.1), inset -2px -2px 4px rgba(0,0,0,0.3);
    width: 110px;
    height: 60px;
    padding: 8px 12px;
}

.stone-shape-slant {
    background: linear-gradient(160deg, #777 0%, #555 70%, #666 100%);
    border-radius: 4px 4px 2px 8px;
    transform: perspective(100px) rotateY(-5deg);
    border: 1px solid #555;
    width: 110px;
    height: 65px;
    padding: 10px 8px 8px 12px;
}

.stone-shape-upright {
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #777 0%, #666 50%, #555 100%);
    border: 1px solid #555;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    width: 90px;
    height: 80px;
    padding: 12px 8px;
}

/* Size-specific adjustments for different marker sizes */
.stone-size-20x10 .stone-shape-flat { width: 100px; height: 40px; padding: 4px 8px; }
.stone-size-24x12 .stone-shape-flat { width: 120px; height: 50px; padding: 6px 10px; }
.stone-size-36x12 .stone-shape-flat { width: 180px; height: 50px; padding: 6px 14px; }

.stone-size-20x10 .stone-shape-bevel { width: 95px; height: 50px; padding: 6px 10px; }
.stone-size-24x12 .stone-shape-bevel { width: 110px; height: 60px; padding: 8px 12px; }
.stone-size-36x12 .stone-shape-bevel { width: 170px; height: 60px; padding: 8px 16px; }

.stone-size-20x10 .stone-shape-slant { width: 95px; height: 55px; padding: 8px 6px 6px 10px; }
.stone-size-24x12 .stone-shape-slant { width: 110px; height: 65px; padding: 10px 8px 8px 12px; }
.stone-size-36x12 .stone-shape-slant { width: 170px; height: 65px; padding: 10px 10px 8px 16px; }

.stone-size-20x10 .stone-shape-upright { width: 75px; height: 70px; padding: 10px 6px; }
.stone-size-24x12 .stone-shape-upright { width: 90px; height: 80px; padding: 12px 8px; }
.stone-size-36x12 .stone-shape-upright { width: 135px; height: 80px; padding: 12px 12px; }

.layout-option-card h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.layout-option-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.layout-option-card.active h4 {
    color: #3498db;
}

/* Text inputs section */
.text-inputs {
    margin-top: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Responsive design */
@media (max-width: 768px) {
    .layout-options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .layout-option-card {
        padding: 1rem;
    }
    
    .layout-preview {
        height: 100px;
    }
    
    .layout-mockup {
        width: 60px;
        height: 80px;
    }
}
