/* 360Future Academy LMS - Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --f360-primary: #0f4c81;
    --f360-primary-hover: #0a355c;
    --f360-navy-dark: #071e3d;
    --f360-accent-blue: #1a62d6;
    --f360-bg-soft: #fbfbfd;
    --f360-card-bg: #ffffff;
    --f360-card-border: #e2e8f0;
    --f360-card-hover-border: #cbd5e1;
    --f360-text-main: #0f172a;
    --f360-text-muted: #64748b;
    --f360-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --f360-font-heading: 'Outfit', sans-serif;
    --f360-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --f360-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --f360-radius: 16px;
}

.f360-frontend-wrap {
    font-family: var(--f360-font);
    color: var(--f360-text-main);
    background: var(--f360-bg-soft);
    min-height: 100vh;
    padding-bottom: 60px;
    box-sizing: border-box;
}

.f360-frontend-wrap * {
    box-sizing: border-box;
}

/* Header Styling (Matching PDF Top Bar) */
.f360-site-header {
    background: #fdf6f7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 24px;
}

.f360-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.f360-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.f360-brand-icon {
    display: flex;
    align-items: center;
    gap: 3px;
}

.f360-brand-icon .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-yellow { background: #f59e0b; }
.dot-pink   { background: #ec4899; }
.dot-blue   { background: #06b6d4; }

.f360-brand-text h2, 
.f360-brand-text h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    font-family: var(--f360-font-heading);
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.f360-brand-text .sub-brand {
    font-weight: 600;
    font-size: 15px;
    color: #374151;
    text-transform: uppercase;
}

.f360-brand-text .tagline {
    margin: 2px 0 0;
    font-size: 11px;
    color: #4b5563;
    font-weight: 600;
}

.f360-top-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.f360-top-nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #4b5563;
    transition: color 0.2s;
}

.f360-top-nav a:hover, 
.f360-top-nav a.active {
    color: var(--f360-primary);
    font-weight: 600;
}

.f360-nav-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.f360-nav-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Hero Section (Matching PDF Page 1) */
.f360-hero-section {
    max-width: 1140px;
    margin: 40px auto 30px;
    padding: 0 20px;
}

.f360-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.f360-academy-pill {
    display: inline-block;
    color: #ea580c;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.f360-hero-title {
    font-family: var(--f360-font-heading);
    font-size: 48px;
    line-height: 1.05;
    font-weight: 800;
    color: var(--f360-primary);
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}

.f360-hero-desc {
    max-width: 480px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--f360-text-muted);
    margin: 0;
}

.f360-hero-right {
    display: flex;
    justify-content: center;
}

.f360-grad-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--f360-shadow-md);
}

.f360-grad-icon {
    font-size: 80px;
}

/* Course Catalog Grid (Matching PDF Page 1) */
.f360-catalog-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.f360-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.f360-course-card {
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--f360-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid transparent;
}

.f360-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--f360-shadow-md);
    border-color: #cbd5e1;
}

.f360-course-thumb-box {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f360-course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.f360-course-placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f360-thumb-symbol {
    font-size: 54px;
}

.f360-course-card-footer {
    padding: 16px 20px 20px;
    text-align: center;
    background: #e2e8f0;
}

.f360-course-name {
    font-family: var(--f360-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--f360-primary);
    margin: 0 0 12px;
}

.f360-btn-enter-course {
    width: 100%;
    background: var(--f360-primary);
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.f360-btn-enter-course:hover {
    background: var(--f360-primary-hover);
}

/* Modal Styling */
.f360-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.f360-modal-dialog {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 36px 32px;
    animation: f360FadeInUp 0.3s ease;
}

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

.f360-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 28px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.f360-modal-close:hover {
    color: #0f172a;
}

/* Authentication Card Styles (Matching PDF Page 2 & 3) */
.f360-auth-card-wrap {
    width: 100%;
}

.f360-auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.f360-auth-course-name {
    font-family: var(--f360-font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--f360-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.f360-auth-subtext {
    font-size: 18px;
    color: #475569;
    font-weight: 500;
    display: block;
    margin-top: 4px;
}

.f360-auth-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.f360-auth-alert.f360-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.f360-auth-alert.f360-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.f360-form-group {
    margin-bottom: 18px;
}

.f360-form-group label {
    display: block;
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 8px;
}

.f360-form-group input, 
.f360-otp-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid #94a3b8;
    font-size: 15px;
    font-family: var(--f360-font);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.f360-form-group input:focus, 
.f360-otp-input:focus {
    border-color: var(--f360-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

.f360-form-extra {
    text-align: right;
    margin-bottom: 22px;
}

.f360-forgot-link {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.f360-forgot-link:hover {
    text-decoration: underline;
}

.f360-btn-full {
    width: 100%;
    background: var(--f360-primary);
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.f360-btn-full:hover {
    background: var(--f360-primary-hover);
}

.f360-btn-full:active {
    transform: scale(0.99);
}

/* OTP Screen (Matching PDF Page 3) */
.f360-otp-row-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.f360-otp-label {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    min-width: 45px;
}

.f360-otp-actions {
    text-align: right;
    margin-bottom: 18px;
}

.f360-resend-link {
    background: none;
    border: none;
    color: var(--f360-accent-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Course Dashboard (Matching PDF Page 4) */
.f360-dashboard-header {
    text-align: center;
    margin: 30px auto 25px;
}

.f360-course-headline {
    font-family: var(--f360-font-heading);
    font-size: 38px;
    font-weight: 800;
    color: var(--f360-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.f360-lessons-grid-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.f360-class-card {
    background: #cbd5e1;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--f360-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.f360-class-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--f360-shadow-md);
}

.f360-class-card.f360-card-active {
    border: 2px solid var(--f360-primary);
}

.f360-class-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #94a3b8;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f360-class-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.f360-class-placeholder-screen {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f360-play-icon {
    font-size: 32px;
    color: #64748b;
}

.f360-class-card-bottom {
    margin-top: 12px;
    text-align: center;
}

.f360-btn-watch-class {
    display: inline-block;
    background: var(--f360-primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 20px;
    transition: background 0.2s;
}

.f360-btn-watch-class:hover {
    background: var(--f360-primary-hover);
    color: #ffffff;
}

/* Active Player Container */
.f360-active-player-wrapper {
    max-width: 960px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* Responsive Queries */
@media (max-width: 900px) {
    .f360-grid-container, 
    .f360-lessons-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .f360-hero-container {
        flex-direction: column;
        text-align: center;
    }
    .f360-hero-desc {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .f360-grid-container, 
    .f360-lessons-grid-container {
        grid-template-columns: 1fr;
    }
    .f360-hero-title {
        font-size: 36px;
    }
    .f360-top-nav {
        gap: 12px;
    }
}
