﻿@import 'bootstrap/dist/css/bootstrap.min.css';

/* Custom CSS Variables for Dark Mode */
:root {
    --bs-primary: #2196F3;
    --bs-primary-dark: #3b82f6;
    --bs-secondary: #475569;
    --bs-success: #10b981;
    --bs-info: #06b6d4;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-light: #f1f5f9;
    --bs-dark: #1f2937;
    --bs-body-bg: #fafbfc;
    --bs-body-color: #374151;
    --bs-border-color: #e5e7eb;
    --transition-duration: 300ms;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #1f2937;
    --secondary-bg: #f1f5f9;
    --tertiary-bg: #e5e7eb;
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --bs-body-bg: #0a1628;
    --bs-body-color: #f3f4f6;
    --bs-border-color: #374151;
    --secondary-bg: #1e293b;
    --tertiary-bg: #374151;
    --card-bg: #1e293b;
    --header-bg: #0a1628;
    --footer-bg: #0a1628;
    --bs-light: #374151;
    --bs-secondary: #9ca3af;
}

/* Custom CSS classes used in the CSHTML file */
.bg-light-custom {
    background-color: var(--secondary-bg) !important;
}

.text-muted-custom {
    color: var(--bs-secondary) !important;
}

.hero-gradient {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
}

[data-bs-theme="dark"] .hero-gradient {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
}

.benefit-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

    .benefit-icon.bg-blue-light {
        background-color: #dbeafe;
        color: #2563eb;
    }

    .benefit-icon.bg-green-light {
        background-color: #19281;
        color: #16a34a;
    }

    .benefit-icon.bg-purple-light {
        background-color: #f3e8ff;
        color: #9333ea;
    }

    .benefit-icon.bg-orange-light {
        background-color: #fed7aa;
        color: #ea580c;
    }

[data-bs-theme="dark"] .benefit-icon.bg-blue-light {
    background-color: rgba(37, 99, 235, 0.3);
    color: #60a5fa;
}

[data-bs-theme="dark"] .benefit-icon.bg-green-light {
    background-color: rgba(22, 163, 74, 0.3);
    color: #4ade80;
}

[data-bs-theme="dark"] .benefit-icon.bg-purple-light {
    background-color: rgba(147, 51, 234, 0.3);
    color: #a855f7;
}

[data-bs-theme="dark"] .benefit-icon.bg-orange-light {
    background-color: rgba(234, 88, 12, 0.3);
    color: #fb923c;
}
/*master class card style*/
.masterclass-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-duration) ease;
}

    .masterclass-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

[data-bs-theme="dark"] .masterclass-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

    [data-bs-theme="dark"] .masterclass-card:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

.masterclass-image-container {
    position: relative;
    height: 181px;
    overflow: hidden;
}

.masterclass-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-duration) ease;
}

.masterclass-card:hover .masterclass-image {
    transform: scale(1.02);
}

#scrollableCard {
    position: static;
    top: 100px;
    transition: all 0.3s ease;
    z-index: 10;
}

    #scrollableCard.sticky {
        position: sticky;
    }

.benefit-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: orange;
}

.bg-warning-light {
    background-color: #fff3cd;
}
/* Course Category Pills */
.category-pill {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition-duration) ease;
    cursor: pointer;
    border: 1px solid var(--bs-border-color);
    background-color: var(--card-bg);
    color: var(--bs-body-color);
    font-size: 0.875rem;
    white-space: nowrap;
}

    .category-pill.active {
        background-color: var(--bs-primary);
        color: white;
        border-color: var(--bs-primary);
        box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    }

    .category-pill:not(.active):hover {
        background-color: var(--tertiary-bg);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

[data-bs-theme="dark"] .category-pill:not(.active):hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive category pills */
@media (max-width: 768px) {
    .category-pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .category-pill {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
}


/*class details
/* Masterclass Detail Page Styles */

/* Hero Section */
.masterclass-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( 135deg, rgba(37, 99, 235, 0.9) 0%, rgba(99, 102, 241, 0.8) 50%, rgba(168, 85, 247, 0.9) 100% );
}

.masterclass-hero .container {
    z-index: 2;
}

/* Badge */
.badge-lg {
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
    color:white;
    font-weight: 600;
    border-radius: 50px;
}

/* Session Info Cards */
.session-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

    .session-info-card:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

/* Technology Badges */
.tech-badge-hero {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Instructor Card */
.instructor-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.instructor-image {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

    .instructor-image img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border: 4px solid rgba(255, 255, 255, 0.3);
    }

.instructor-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f59e0b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.instructor-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Content Sections */
.content-section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--bs-border-color);
}

.section-title {
    color: var(--bs-body-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--bs-primary);
        border-radius: 2px;
    }

/* Learning Modules */
.learning-modules {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.module-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.module-number {
    background: var(--bs-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.module-content {
    flex: 1;
}

.module-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .module-list li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--bs-secondary);
    }

        .module-list li::before {
            content: '•';
            color: var(--bs-primary);
            position: absolute;
            left: 0;
            font-weight: bold;
        }

/* Benefit Cards */
.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

    .benefit-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

[data-bs-theme="dark"] .benefit-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Speaker Profile */
.speaker-profile {
    background: var(--secondary-bg);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--bs-border-color);
}

.speaker-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* Registration Card */
.registration-card {
/*    border: none;*/
/*    background: linear-gradient(135deg, var(--card-bg) 0%, var(--secondary-bg) 100%);*/
}

/* Countdown Timer */
.countdown-timer {
    background: var(--secondary-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color);
}

.countdown-item {
    background: var(--card-bg);
    border-radius: 0.5rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--bs-border-color);
}

.countdown-number {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--bs-primary);
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--bs-secondary);
}

/* Registration Stats */
.registration-stats {
    background: var(--secondary-bg);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
}

/* Session Details Card */
.session-details-card {
/*    border: none;*/
}

.session-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

    .session-detail-item:last-child {
        border-bottom: none;
    }

    .session-detail-item i {
        margin-top: 0.25rem;
        flex-shrink: 0;
    }

/* Program Cards */
.program-card {
    background: var(--card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

    .program-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

[data-bs-theme="dark"] .program-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.program-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.program-icon {
    background: var(--bs-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-badge {
    background: var(--bs-warning);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.program-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--bs-body-color);
}

/* Review Cards */
.review-card {
    background: var(--card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

    .review-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

[data-bs-theme="dark"] .review-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-rating {
    margin-left: auto;
    min-width:108px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .sidebar-sticky {
        position: static;
        margin-top: 3rem;
    }

    .instructor-card {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .masterclass-hero {
        min-height: auto;
        padding: 4rem 0;
    }

    .session-info-card {
        padding: 1rem;
    }

    .instructor-card {
        padding: 1.5rem;
    }

    .instructor-image img {
        width: 100px;
        height: 100px;
    }

    .content-section {
        padding: 1.5rem;
    }

    .module-item {
        flex-direction: column;
        gap: 1rem;
    }

    .module-number {
        align-self: flex-start;
    }

    .countdown-item {
        padding: 0.5rem;
    }

    .countdown-number {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .session-info-card {
        padding: 0.75rem;
    }

    .instructor-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
    }

    .stat-number,
    .stat-label {
        display: inline;
    }

    .content-section {
        padding: 1rem;
    }

    .program-card {
        padding: 1.5rem;
    }

    .program-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .review-rating {
        margin-left: 0;
    }
}

/* Animation for countdown */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.countdown-number {
    animation: pulse 2s infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Print styles */
@media print {
    .navbar,
    .footer-custom,
    .sidebar-sticky {
        display: none !important;
    }

    .masterclass-hero {
        min-height: auto;
        page-break-after: always;
    }

    .content-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}