/* ================================================
   FREE COURSES — MODERN MINIMAL DESIGN
================================================ */

/* ── HERO ── */
.fc-hero {
    position: relative;
    padding: 5rem 0 4rem;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
}
.fc-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(13,148,136,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(99,102,241,0.1) 0%, transparent 50%);
    animation: fc-float 20s ease-in-out infinite;
}
@keyframes fc-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 2%); }
}
.fc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.fc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1.1rem;
    background: rgba(20,184,166,0.15);
    border: 1px solid rgba(20,184,166,0.3);
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    color: #5eead4;
    margin-bottom: 1.5rem;
}
.fc-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: .75rem;
}
.fc-hero p {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* ── COURSE GRID ── */
.fc-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

/* ── COURSE CARD ── */
.fc-course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    overflow: hidden;
}
.fc-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,.1);
    border-color: #0d9488;
}
.fc-card-glow {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #6366f1);
    opacity: 0;
    transition: opacity .25s;
}
.fc-course-card:hover .fc-card-glow { opacity: 1; }

.fc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.fc-card-icon-wrap {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    color: #0d9488;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.fc-video-count {
    background: #f1f5f9;
    color: #475569;
    padding: .35rem .75rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
}
.fc-course-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .4rem;
}
.fc-course-card p {
    font-size: .9rem;
    color: #64748b;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.fc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.25rem;
}
.fc-free-badge {
    color: #10b981;
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.fc-card-arrow {
    color: #0d9488;
    font-weight: 600;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: gap .2s;
}
.fc-course-card:hover .fc-card-arrow { gap: .7rem; }

/* ── EMPTY STATE ── */
.fc-empty-public {
    text-align: center;
    padding: 5rem 2rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
}
.fc-empty-public i {
    font-size: 3.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}
.fc-empty-public h3 {
    font-size: 1.4rem;
    color: #334155;
    margin-bottom: .4rem;
}
.fc-empty-public p {
    color: #64748b;
    margin-bottom: 1.25rem;
}

/* ── TECHNICAL SUPPORT ── */
.fc-support-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-top: 2.5rem;
    color: #fff;
}
.fc-support-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.fc-support-text {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.fc-support-icon {
    width: 52px; height: 52px;
    background: rgba(13,148,136,.15);
    border: 1px solid rgba(13,148,136,.4);
    color: #2dd4bf;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.fc-support-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .15rem;
    color: #fff;
}
.fc-support-details p {
    color: #94a3b8;
    font-size: .9rem;
    margin: 0;
}
.fc-support-eng { color: #5eead4; font-weight: 600; }
.fc-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #25d366;
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(37,211,102,.35);
}
.fc-whatsapp-btn:hover {
    background: #20ba5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,211,102,.5);
}

/* ── WATCH PAGE ── */
.fc-watch-topbar {
    background: #0f172a;
    color: #fff;
    padding: .85rem 0;
    border-bottom: 1px solid #1e293b;
}
.fc-watch-topbar .container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.fc-back-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: color .2s;
    font-size: .9rem;
}
.fc-back-link:hover { color: #fff; }
.fc-watch-title {
    font-weight: 600;
    color: #fff;
    border-left: 1px solid #334155;
    padding-left: 1.25rem;
    font-size: .95rem;
}

.fc-watch-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    min-height: calc(100vh - 130px);
    background: #f8fafc;
}
.fc-player-area { padding: 1.5rem; }
.fc-player-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px -4px rgba(0,0,0,.15);
}
.fc-video-player { width: 100%; height: 100%; outline: none; }
.fc-now-playing {
    margin-top: 1.25rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.fc-now-playing h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .75rem;
}
.fc-now-meta {
    display: flex;
    gap: 1.25rem;
    color: #64748b;
    font-size: .9rem;
}
.fc-now-meta span {
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ── PLAYLIST ── */
.fc-playlist {
    background: #fff;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.fc-playlist-header {
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fc-playlist-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.fc-playlist-count {
    font-size: .8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: .25rem .55rem;
    border-radius: 50px;
}
.fc-playlist-list { flex-grow: 1; overflow-y: auto; }
.fc-playlist-item {
    display: flex;
    align-items: center;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    cursor: pointer;
}
.fc-playlist-item:hover { background: #f8fafc; }
.fc-playlist-item.fc-active {
    background: #f0fdfa;
    border-left: 3px solid #0d9488;
}
.fc-pl-number {
    width: 22px;
    font-size: .8rem;
    color: #94a3b8;
    font-weight: 600;
}
.fc-pl-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.fc-pl-title {
    font-weight: 600;
    color: #334155;
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-playlist-item.fc-active .fc-pl-title { color: #0d9488; }
.fc-pl-file {
    font-size: .75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-pl-play, .fc-pl-playing { color: #cbd5e1; margin-left: .75rem; }
.fc-pl-playing { color: #0d9488; }

/* ── ADMIN ── */
.fc-admin-page { padding: 2rem; }
.fc-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.fc-admin-header h1 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.fc-admin-subtitle { color: #64748b; font-size: .95rem; }

.fc-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}
.fc-admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.fc-admin-card.fc-draft { background: #f8fafc; border-style: dashed; }
.fc-admin-card-icon {
    width: 38px; height: 38px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: .75rem;
}
.fc-admin-card.fc-draft .fc-admin-card-icon { background: #e2e8f0; }
.fc-admin-card-body { flex-grow: 1; }
.fc-admin-card-body h3 { font-size: 1.1rem; margin-bottom: .4rem; color: #1e293b; }
.fc-desc {
    color: #64748b;
    font-size: .88rem;
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fc-admin-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.fc-meta-item {
    font-size: .82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.fc-badge { font-size: .72rem; padding: .2rem .55rem; border-radius: 50px; font-weight: 600; }
.fc-badge-live { background: #dcfce7; color: #166534; }
.fc-badge-draft { background: #f1f5f9; color: #475569; }
.fc-admin-card-actions {
    display: flex;
    gap: .5rem;
    border-top: 1px solid #f1f5f9;
    padding-top: .75rem;
}

/* ── BUTTONS ── */
.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem 1.1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .2s;
}
.fc-btn-sm { padding: .35rem .7rem; font-size: .82rem; }
.fc-btn-primary { background: #0f172a; color: #fff; }
.fc-btn-primary:hover { background: #1e293b; color: #fff; }
.fc-btn-teal { background: #0d9488; color: #fff; flex-grow: 1; }
.fc-btn-teal:hover { background: #0f766e; color: #fff; }
.fc-btn-outline { background: #fff; border-color: #cbd5e1; color: #475569; }
.fc-btn-outline:hover { background: #f8fafc; border-color: #94a3b8; }
.fc-btn-danger { background: #fee2e2; color: #ef4444; }
.fc-btn-danger:hover { background: #fecaca; color: #dc2626; }

/* ── ADMIN FORMS ── */
.fc-form-page { padding: 2rem; max-width: 750px; margin: 0 auto; }
.fc-form-header { margin-bottom: 1.5rem; }
.fc-form-header h1 { font-size: 1.6rem; margin-top: .75rem; margin-bottom: .4rem; }
.fc-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem;
}
.fc-form-group { margin-bottom: 1.25rem; }
.fc-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .4rem;
    font-size: .9rem;
}
.fc-input, .fc-textarea {
    width: 100%;
    padding: .65rem .9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s;
}
.fc-input:focus, .fc-textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,.08);
}
.fc-validation { color: #ef4444; font-size: .82rem; margin-top: .2rem; display: block; }

/* Toggle */
.fc-toggle-group { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #f1f5f9; }
.fc-toggle-label { display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.fc-toggle { display: none; }
.fc-toggle-slider {
    position: relative;
    width: 44px; height: 22px;
    background: #cbd5e1;
    border-radius: 22px;
    transition: .3s;
}
.fc-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}
.fc-toggle:checked + .fc-toggle-slider { background: #0d9488; }
.fc-toggle:checked + .fc-toggle-slider::before { transform: translateX(22px); }
.fc-toggle-text { font-weight: 600; color: #334155; font-size: .9rem; }
.fc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

/* ── VIDEO MANAGEMENT ── */
.fc-videos-page { padding: 2rem; }
.fc-upload-area {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.fc-upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: 1.25rem;
    background: #f8fafc;
}
.fc-upload-dropzone:hover, .fc-upload-dropzone.fc-drag-active {
    border-color: #0d9488;
    background: #f0fdfa;
}
.fc-upload-dropzone i { font-size: 2.5rem; color: #94a3b8; margin-bottom: .75rem; }
.fc-upload-dropzone.fc-drag-active i { color: #0d9488; }
.fc-upload-dropzone h3 { font-size: 1.15rem; color: #334155; margin-bottom: .4rem; }
.fc-upload-formats { font-size: .82rem; color: #64748b; margin-top: .35rem; }
.fc-file-input { display: none; }
.fc-upload-title-row { display: flex; gap: .75rem; }
.fc-upload-title-row .fc-input { flex-grow: 1; }
.fc-selected-files { margin-top: .75rem; display: flex; flex-direction: column; gap: .4rem; }
.fc-selected-file {
    background: #f1f5f9;
    padding: .65rem .85rem;
    border-radius: 6px;
    font-size: .85rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.fc-file-size { color: #64748b; font-size: .8rem; margin-left: auto; }

.fc-video-list { display: flex; flex-direction: column; gap: .75rem; }
.fc-video-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: .85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.fc-video-number {
    width: 28px; height: 28px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .8rem;
}
.fc-video-icon { font-size: 1.3rem; color: #94a3b8; }
.fc-video-info { flex-grow: 1; }
.fc-video-info h4 { margin: 0 0 .2rem; font-size: 1rem; color: #1e293b; }
.fc-video-meta { display: flex; gap: 1.25rem; font-size: .82rem; color: #64748b; }
.fc-video-actions { display: flex; gap: .4rem; }

.fc-empty { text-align: center; padding: 4rem 1rem; }
.fc-empty i { font-size: 3rem; color: #cbd5e1; margin-bottom: .75rem; }
.fc-empty-sm {
    text-align: center;
    padding: 2.5rem 1rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}
.fc-empty-sm i { font-size: 2rem; color: #cbd5e1; margin-bottom: .75rem; }

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .fc-watch-layout { grid-template-columns: 1fr; }
    .fc-playlist {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        max-height: 350px;
    }
    .fc-hero h1 { font-size: 2rem; }
    .fc-support-content { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
    .fc-video-item { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .fc-video-actions { width: 100%; justify-content: flex-end; }
    .fc-upload-title-row { flex-direction: column; }
    .fc-public-grid { grid-template-columns: 1fr; }
}
