/* app/static/css/main.css */
/* Main stylesheet for ClassObjectives public pages */

/* ==================== CSS Variables ==================== */
:root {
    --primary-blue: #2e86ab;
    --secondary-purple: #764ba2;
    --secondary-green: #a23b72;
    --accent-orange: #f18f01;
    --accent-green: #28a745;
    --warm-yellow: #c73e1d;
    --soft-purple: #7209b7;
    
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.16);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
}

/* ==================== Base Styles ==================== */
body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

.text-muted {
    color: var(--text-light) !important;
}

/* ==================== Beta Badge ==================== */
.beta-badge {
    background: linear-gradient(135deg, #667eea 0%, var(--secondary-purple) 100%);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    top: -2px;
    margin-left: 0.25rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* ==================== Navigation Styles ==================== */
.navbar {
    background: #2c3e50 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

/* Transparent navbar for hero sections */
.navbar-transparent {
    background: rgba(0,0,0,0.1) !important;
    backdrop-filter: blur(10px);
    position: absolute;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
}

.navbar-transparent .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Button styles in transparent navbar */
.navbar-transparent .btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.navbar-transparent .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.navbar-transparent .btn-light {
    background: white;
    color: var(--primary-blue);
    font-weight: 600;
}

/* ==================== Hero Sections ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ==================== Floating Icons Animation ==================== */
.floating-icon {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.floating-icon:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.floating-icon:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 3s; }
.floating-icon:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }
.floating-icon:nth-child(6) { top: 60%; right: 8%; animation-delay: 5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ==================== Cards ==================== */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: none;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-icon.blue { background: linear-gradient(45deg, var(--primary-blue), #4da6d9); }
.feature-icon.green { background: linear-gradient(45deg, var(--accent-green), #20c997); }
.feature-icon.orange { background: linear-gradient(45deg, var(--accent-orange), #ffb84d); }
.feature-icon.purple { background: linear-gradient(45deg, var(--soft-purple), #9c4dcc); }

/* ==================== Pricing Specific ==================== */
.pricing-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border: 3px solid var(--primary-blue);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.plan-price sup {
    font-size: 1.5rem;
    top: -0.5em;
}

/* ==================== Billing Toggle ==================== */
.billing-toggle {
    text-align: center;
    margin-bottom: 3rem;
}

.toggle-wrapper {
    display: inline-flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: var(--shadow-md);
}

.toggle-option {
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
}

.toggle-option.active {
    background: var(--primary-blue);
    color: white;
}

.savings-badge {
    background: var(--accent-green);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}

/* ==================== Feature Lists ==================== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: var(--accent-green);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.feature-list .text-muted i {
    color: #dee2e6;
}

/* ==================== Buttons ==================== */
.btn-select-plan {
    width: 100%;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    border: none;
}

.btn-free {
    background: #e9ecef;
    color: var(--text-dark);
}

.btn-free:hover {
    background: #dee2e6;
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: white;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46,134,171,0.3);
}

.btn-coming-soon {
    background: linear-gradient(45deg, var(--accent-orange), var(--warm-yellow));
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
    transition: all var(--transition-base);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-coming-soon:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* ==================== Sections ==================== */
.features-section, .demo-section {
    padding: 100px 0;
}

.features-section {
    background: var(--bg-light);
}

.demo-section {
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* ==================== Demo Mockup ==================== */
.demo-mockup {
    background: linear-gradient(135deg, #667eea 0%, var(--secondary-purple) 100%);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.mockup-period {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.mockup-slide {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: left;
}

.slide-label {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-orange);
}

/* ==================== Fine Print ==================== */
.fine-print {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid #e9ecef;
}

.fine-print h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.fine-print p, .fine-print li {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

.asterisk {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
    margin-top: auto;
}

.footer h4 {
    color: white;
    font-weight: 600;
}

.footer a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.footer a:hover {
    color: white;
    opacity: 1;
}

.footer hr {
    border-color: #495057;
    opacity: 0.5;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* Legacy footer classes for compatibility */
.pricing-footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
}

.pricing-footer a {
    color: #adb5bd;
    text-decoration: none;
}

.pricing-footer a:hover {
    color: white;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 1rem;
}

/* ==================== FAQ Section ==================== */
.faq-section {
    padding: 60px 0;
    background: white;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-light);
    color: var(--primary-blue);
}

/* ==================== TOS/Legal Pages ==================== */
.tos-header, .legal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: white;
    padding: 100px 0 60px; /* Added top padding for navbar */
    text-align: center;
    position: relative;
}

.tos-content, .legal-content {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    margin-top: -30px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.back-link {
    color: white;
    text-decoration: none;
    position: absolute;
    top: 80px; /* Adjusted for navbar */
    left: 20px;
    z-index: 10;
}

.back-link:hover {
    opacity: 0.8;
    color: white;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .floating-icon {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-hero h1 {
        font-size: 2rem;
    }
    
    .plan-price {
        font-size: 2.5rem;
    }
}