/* Course Purchase Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: #764ba2;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #f5f5f5;
    color: #333;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat i {
    color: #ffd700;
    font-size: 1.25rem;
}

.stat span {
    font-weight: 500;
}

/* Course Section */
.course-section {
    padding: 4rem 0;
}

.course-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Course Details */
.course-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.section-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.section-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.learning-grid {
    display: grid;
    gap: 1.5rem;
}

.learning-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.learning-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.learning-item i {
    color: #667eea;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.learning-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.learning-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Modules List */
.modules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.module-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.module-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.module-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.module-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Included Items */
.included-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.included-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.included-item i {
    color: #10b981;
    font-size: 1.25rem;
}

.included-item span {
    color: #1e293b;
    font-weight: 500;
}

/* Purchase Sidebar */
.purchase-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.purchase-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    position: sticky;
    top: 100px;
}

.price-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.price-note {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.value-note {
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 500;
}

.purchase-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e293b;
}

.benefit i {
    color: #667eea;
    width: 20px;
    text-align: center;
}

.purchase-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.security-note i {
    color: #10b981;
}

.guarantee {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    text-align: center;
}

.guarantee h4 {
    color: #166534;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.guarantee p {
    color: #15803d;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial {
    text-align: center;
}

.quote {
    margin-bottom: 1.5rem;
}

.quote i {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.quote p {
    font-style: italic;
    color: #475569;
    line-height: 1.6;
}

.author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info strong {
    color: #1e293b;
    display: block;
}

.author-info span {
    color: #64748b;
    font-size: 0.875rem;
}

.rating {
    color: #fbbf24;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.faq-section h2 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner i {
    font-size: 3rem;
    color: #667eea;
}

.loading-content h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .course-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .purchase-sidebar {
        order: -1;
    }
    
    .purchase-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-layout {
        padding: 2rem;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .learning-item,
    .module-item {
        padding: 1rem;
    }
    
    .purchase-card {
        padding: 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .course-section {
        padding: 2rem 0;
    }
    
    .course-layout {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .stat {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .learning-item,
    .module-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .author {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* VIP Access Styles */
.vip-access {
    text-align: center;
    color: #f59e0b;
}

.vip-access i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.vip-access h3 {
    margin-bottom: 0.5rem;
    color: #92400e;
}

.vip-access p {
    color: #d97706;
    margin-bottom: 1rem;
}

.vip-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.purchase-btn i.fa-crown {
    color: #fbbf24;
}
