/* Result Details & Image Frame Styling */

/* Selection Summary */
.selection-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.summary-item {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.summary-item h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.style-preview, .color-preview, .custom-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.style-image-container {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.style-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 0; /* Square instead of round */
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.style-name, .color-name, .custom-name {
    font-size: 0.9rem;
    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);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .selection-summary {
        flex-direction: column;
        align-items: center;
    }
    
    .summary-item {
        width: 80%;
        max-width: 300px;
    }
    
    .before-after {
        flex-direction: column;
    }
}
