/* ============================================
   INDEX.CSS - Landing Page Styles
   Clean, modern design without dependencies
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* === LOADING CONTAINER === */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container p {
    color: #fff;
    margin-top: 20px;
    font-size: 16px;
}

/* === CONTENT CONTAINERS === */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === HEADER === */
header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

header p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* === MAIN CONTENT === */
main {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* === HERO SECTION === */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* === CTA BUTTONS === */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

/* === FEATURES SECTION === */
.features {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.features h3 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.features ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.features li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    color: #555;
}

.features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* === PRICING SECTION === */
.pricing {
    text-align: center;
    padding: 40px 20px;
}

.pricing h3 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 30px;
}

.price-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.price-card p {
    font-size: 1.05rem;
    color: #666;
    margin: 10px 0;
}

/* === PAYMENT REQUIRED PAGE === */
.payment-required {
    text-align: center;
    padding: 40px 20px;
}

.payment-required h2 {
    font-size: 2rem;
    color: #d32f2f;
    margin-bottom: 20px;
}

.subscription-benefits {
    margin: 40px auto;
    max-width: 500px;
    text-align: left;
}

.subscription-benefits h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.subscription-benefits ul {
    list-style: none;
}

.subscription-benefits li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
}

.subscription-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

#subscribe-button {
    margin-top: 30px;
}

.guarantee {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* === LOGOUT BUTTON === */
.btn-logout {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #667eea;
    color: white;
}

/* === ERROR PAGE === */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-page h1 {
    font-size: 4rem;
    color: #d32f2f;
    margin-bottom: 20px;
}

.error-page h2 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 15px;
}

.error-page p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 30px;
}

/* === RESPONSIVE DESIGN === */

/* Tablets */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.25rem;
    }
    
    header p {
        font-size: 1.1rem;
    }
    
    main {
        padding: 30px 20px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    header {
        padding: 40px 20px 30px;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    main {
        padding: 20px 15px;
    }
    
    .hero h2 {
        font-size: 1.25rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .features,
    .pricing {
        padding: 30px 15px;
    }
    
    .btn-logout {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* === ACCESSIBILITY === */
button:focus,
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === PRINT STYLES === */
@media print {
    .loading-container,
    .btn-logout {
        display: none;
    }
    
    header {
        background: none;
        color: black;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 1px solid black;
        background: white;
        color: black;
    }
}
