/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.4;
    color: #333;
    background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%);
    min-height: 100vh;
}

/* Hide content initially until authentication check completes */
body.loading .container {
    visibility: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Header styles */
header {
    text-align: center;
    padding: 15px 20px;
    color: #333;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    color: #555;
}

/* Main content */
main {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Image comparison section */
.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.image-wrapper {
    text-align: center;
}

/* Before title - messy/bad looking */
.before-title {
    font-family: 'Comic Sans MS', 'Marker Felt', cursive;
    color: #d32f2f;
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 400;
    transform: rotate(-2deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* Before subtitle - thin, italic */
.before-subtitle {
    font-size: 0.75rem;
    font-weight: 300;
    font-style: italic;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* After title - pristine/clean looking */
.after-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #2e7d32;
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* After subtitle - clean and elegant */
.after-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2e7d32;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-wrapper img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Pricing section */
.pricing {
    text-align: center;
    padding: 20px 20px;
    margin-top: 15px;
}

.signup-button {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.signup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.signup-button:active {
    transform: translateY(-1px);
}

/* Footer */
footer {
    text-align: center;
    padding: 15px 20px;
    color: #555;
    opacity: 0.8;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #4caf50;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #2e7d32;
    opacity: 1;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #4caf50;
    transition: width 0.3s ease, left 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Legal Content Pages (Privacy Policy, Terms of Service) */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #444;
    font-weight: 500;
}

.legal-content p {
    margin-bottom: 15px;
    color: #555;
}

.legal-content ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 8px;
    color: #555;
}

.legal-content a {
    color: #4caf50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

.last-updated {
    font-style: italic;
    color: #888;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.back-link a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #2e7d32;
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
    padding: 0 20px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: #fff;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .image-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    main {
        padding: 15px;
    }
    
    .signup-button {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
    
    .before-title,
    .after-title {
        font-size: 1.1rem;
    }
    
    .close-lightbox {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .lightbox-caption {
        font-size: 1rem;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .legal-content {
        padding: 15px;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
        margin-top: 25px;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
    }
}