/* Result Details & Image Frame Styling */

/* Results Container Layout */
.results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

/* Left Column (Images) */
.results-comparison {
    flex: 3;
    min-width: 280px;
}

/* Right Column (Details) */
.results-details {
    flex: 1;
    min-width: 280px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Door Preview Container */
.door-preview-container {
    margin-bottom: 25px;
    text-align: center;
}

.door-preview-container h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-teal-dark);
}

/* Full Door Image */
.full-door-preview {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.full-door-image {
    width: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.style-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-top: 10px;
}

/* Stacked Variables */
.stacked-variables {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.variable-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.variable-row h4 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--dark-text);
    font-weight: 600;
}

.variable-value {
    font-size: 0.95rem;
    color: var(--dark-text);
    font-weight: 500;
}

/* Image Frame Styling */
.image-frame {
    position: relative;
    padding: 15px;
    border: 3px solid #000;
    border-radius: 4px;
    background-color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.frame-caption {
    position: absolute;
    top: 8px;
    left: 10px;
    color: white;
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.frame-logo {
    position: absolute;
    bottom: 4px;
    right: 5px;
    width: 90px; /* Increased 3x from 30px */
    height: auto;
    opacity: 0.9;
    z-index: 2;
}

.frame-logo img {
    width: 100%;
    height: auto;
}

.image-frame img {
    width: 100%;
    border-radius: 2px;
}

/* Fixing before image sizing */
.before-after {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.before, .after {
    flex: 1;
    min-width: 280px;
    margin: 0;
    position: relative;
}

.after-blur {
    filter: blur(10px);
    transition: filter 0.5s ease;
}

.email-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    padding: 20px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.email-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.email-overlay h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.email-overlay p {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
    max-width: 280px;
}

/* Horizontal color swatch for door preview */
.color-swatch-display {
    display: inline-block;
    width: 32px;
    height: 16px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid #ddd;
}

/* Dark mode specific styles */
.dark-theme .summary-item {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Result Actions Styling */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Quote Button - League Spartan styling */
.btn-quote {
    background: var(--brand-orange);
    color: white;
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 140px;
}

.btn-quote:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.image-disclaimer {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
    color: var(--dark-text);
    font-size: 0.9rem;
}

/* Email section styling */
.email-section-container {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--border-color);
}

.email-blurb {
    margin-bottom: 15px;
    color: var(--dark-text);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .results-container {
        flex-direction: column;
    }
    
    .results-details {
        width: 100%;
        max-width: none;
    }
    
    .full-door-preview {
        display: flex;
        justify-content: center;
    }
    
    .full-door-image {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .before-after {
        flex-direction: column;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-quote, .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}
