/*
 * MAI Home - My Plan Section
 * Styles specific to the My Plan section
 */

/* My Plan Section */
.my-plan-section {
    background-color: var(--primary-bg);
}

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.plan-header h2 {
    font-size: 60px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.plan-header .subheading {
    font-size: 1.4rem;
    color: var(--text-light);
    font-style: italic;
    font-weight: 300;
}

/* Plan Demo Layout */
.plan-demo {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Demo Images - Horizontal Layout */
.demo-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: stretch;
    width: 100%;
}

.before-after {
    display: contents;
}

.before-image,
.after-image {
    position: relative;
    flex: 1;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.image-label {
    position: absolute;
    bottom: var(--spacing-sm);
    left: var(--spacing-sm);
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

/* Plan Content - Two Column Layout like Snap section */
.plan-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: stretch;
    margin: 0 auto;
    padding: 0;
}

/* Left Column - Match Section */
.plan-match-section {
    background: rgba(26, 26, 26, 0.05);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-match-section h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 400;
}

.plan-match-section h4 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.section-cta {
    text-align: left;
}

/* Right Column - Description Text */
.plan-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.plan-description p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* Mobile responsive for My Plan */
@media (max-width: 768px) {
    .plan-header h2 {
        font-size: 42px;
    }
    
    .plan-demo {
        gap: var(--spacing-md);
    }
    
    .demo-images {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .before-after {
        display: contents;
    }
    
    .before-image,
    .after-image {
        flex: 1;
        position: relative;
        cursor: pointer;
    }
    
    .before-image img,
    .after-image img {
        min-height: 200px;
        transition: transform 0.2s ease;
    }
    
    .before-image:hover img,
    .after-image:hover img {
        transform: scale(1.05);
    }
    
    /* Icons removed - click to expand directly */
    
    .plan-content {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        padding: 0;
        margin-top: var(--spacing-md);
    }
    
    .plan-match-section {
        padding: var(--spacing-md);
        margin-bottom: 0;
    }
    
    .plan-match-section h3 {
        font-size: 1.5rem;
    }
    
    .plan-match-section h4 {
        font-size: 1.2rem;
    }
    
    .plan-description {
        margin-top: var(--spacing-sm);
    }
    
    /* Image Modal for Mobile */
    .image-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    
    .image-modal.active {
        display: flex;
    }
    
    .image-modal img {
        max-width: 98%;
        max-height: 98%;
        object-fit: contain;
        border-radius: 8px;
        transition: opacity 0.3s ease;
    }
    
    .image-modal .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
    }
    
    .image-modal .image-label-modal {
        position: absolute;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        padding: 10px 20px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        transition: opacity 0.3s ease;
    }
    
    .image-modal .swipe-hint {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 8px 16px;
        border-radius: 15px;
        font-size: 12px;
        font-weight: 400;
        opacity: 0.8;
        animation: fadeInOut 3s ease-in-out;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0.8; }
        50% { opacity: 0.3; }
    }
} 