/* =========================================================================
   === SYSTEM PLATFORMY EDUKACYJNEJ (LMS) - AI MODERN GLASSMORPHISM ===
   ========================================================================= */

:root {
    --text-color: #1F2937;
    --primary-color: #E20074;
    --primary-hover: #C10063;
    --bg-light: #F5F6FA;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 12px 30px rgba(0, 0, 0, 0.04);
}

body.course-player-body {
    background: var(--bg-light);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Wirtualne Ziarno Fotograficzne */
body.course-player-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
}

.player-header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 80px;
    box-sizing: border-box;
    z-index: 100;
}

.player-header .course-title {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-header .course-title #lesson-title {
    color: var(--text-color);
    font-weight: 700;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.nav-login-btn:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.player-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.player-sidebar {
    width: 340px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 50;
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 0, 126, 0.2) transparent;
}

.module-group {
    padding-bottom: 40px;
}

.module-title {
    padding: 30px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #64748b;
    font-weight: 800;
}

/* Sidebar Accordion Styles */
.sidebar-category-group {
    border-top: 1px solid var(--glass-border);
}

.category-header {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.category-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-number {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 0.7rem;
    background: rgba(230, 0, 126, 0.1);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.category-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
}

.category-arrow {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sidebar-category-group.active .category-arrow {
    transform: rotate(180deg);
}

.sidebar-category-group.active .category-title {
    color: var(--text-color);
}

.topics-container {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(0, 0, 0, 0.02);
}

.sidebar-category-group.active .topics-container {
    max-height: 2000px;
}

.sidebar-topic-item {
    padding: 14px 30px 14px 55px;
    font-size: 0.85rem;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
}

.sidebar-topic-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
    padding-left: 60px;
}

.sidebar-topic-item.active {
    background: rgba(230, 0, 126, 0.08);
    color: var(--primary-color);
    font-weight: 600;
    border-left-color: var(--primary-color);
}

.lesson-dot {
    background: var(--primary-color);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    opacity: 0;
    animation: dotFadeIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes dotFadeIn {
    from {
        opacity: 0;
        transform: scale(0.2);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* OBSZAR GŁÓWNY */
.player-main {
    flex: 1;
    background: transparent;
    overflow-y: auto;
    padding: 80px 40px;
}

.lms-tabs-header {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px;
    border-radius: 16px;
    margin-bottom: 60px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.03);
}

.lms-tab {
    padding: 12px 28px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lms-tab:hover {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.03);
}

.lms-tab.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}

.lms-tab-content {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

/* KARTY */
.glass-card {
    background: #fff;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: var(--shadow-premium);
    position: relative;
    padding: 60px;
}

/* TEORIA */
.theory-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.theory-card:hover {
    border-color: rgba(230, 0, 126, 0.2);
    box-shadow: 0 10px 24px rgba(230, 0, 126, 0.05);
    transform: translateY(-3px);
}

.theory-line {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    align-items: baseline;
}

.theory-point-icon {
    flex-shrink: 0;
    margin-top: 6px;
}

.theory-bad {
    color: #94a3b8;
    font-weight: 400;
    text-decoration: line-through;
    opacity: 0.8;
    font-size: 1.05rem;
}

.theory-good {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.theory-why {
    background: #F8F9FC;
    padding: 24px;
    border-radius: 16px;
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.95rem;
    border-left: 3px solid var(--primary-color);
    margin-top: 15px;
}

/* ĆWICZENIA */
.exercise-card {
    background: #ffffff;
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 60px;
    margin-top: 20px;
    box-shadow: var(--shadow-premium);
}

.ex-question {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    line-height: 1.5;
}

.ex-input-field {
    background: transparent;
    border: none;
    border-bottom: 3px solid rgba(230, 0, 126, 0.3);
    color: var(--text-color);
    font-size: 1.8rem;
    padding: 5px 15px;
    width: 200px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s;
}

.ex-input-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.choice-option {
    background: #F8F9FC;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 24px 32px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 500;
}

.choice-option:hover {
    background: #fff;
    border-color: rgba(230, 0, 126, 0.3);
    color: var(--text-color);
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

.choice-option.selected {
    background: #E7ECFF;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.ex-feedback {
    margin-top: 40px;
    padding: 30px;
    border-radius: 24px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.feedback-success {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #34D399;
}

.feedback-fail {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #F87171;
}

.btn-ex-check {
    margin-top: 40px;
    width: 100%;
    padding: 22px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* WRITING */
.w-scenario {
    background: #FFFBEB;
    padding: 40px;
    border-radius: 24px;
    color: #1F2937;
    margin-bottom: 40px;
    border-left: 4px solid #f59e0b;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

.w-textarea {
    width: 100%;
    height: 300px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 35px;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-color);
    font-family: inherit;
    line-height: 1.8;
}

.w-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(230, 0, 126, 0.1);
}

.perfect-model {
    background: #ECFDF5;
    padding: 35px;
    border-radius: 20px;
    color: #059669;
    font-weight: 600;
    border: 1px solid #34D399;
    line-height: 1.8;
}


/* =============================================
   PRO CONTEXT SWITCHER COMPONENT
   ============================================= */
.pro-context {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px solid var(--glass-border);
}

.pro-context-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.pro-context-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    background: rgba(230, 0, 126, 0.1);
    border: 1px solid rgba(230, 0, 126, 0.2);
    padding: 5px 14px;
    border-radius: 30px;
}

.pro-context-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

.pro-context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.pro-card {
    padding: 35px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.35s ease;
}

.pro-card-standard {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pro-card-premium {
    background: linear-gradient(135deg, #F5F6FF, #F9FAFF);
    border: 1px solid rgba(230, 0, 126, 0.2);
    box-shadow: 0 8px 24px rgba(230, 0, 126, 0.08);
}

.pro-card-premium:hover {
    box-shadow: 0 12px 30px rgba(230, 0, 126, 0.12), inset 0 1px 0 #fff;
    transform: translateY(-3px);
}

.pro-card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    color: var(--primary-color);
}

.pro-card-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.pro-card-standard .pro-card-label {
    color: #64748b;
}

.pro-card-premium .pro-card-label {
    color: var(--primary-color);
}

.pro-phrase {
    font-size: 1.15rem;
    line-height: 1.7;
    font-style: italic;
}

.pro-card-standard .pro-phrase {
    color: #cbd5e1;
    font-weight: 400;
}

.pro-card-premium .pro-phrase {
    color: var(--text-color);
    font-weight: 600;
}

/* CTA Banner */
.pro-cta-banner {
    background: #F8F9FC;
    border: 1px solid rgba(230, 0, 126, 0.15);
    border-radius: 20px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}

.pro-cta-text {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.5;
    max-width: 480px;
}

.pro-cta-text strong {
    color: var(--text-color);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.pro-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
}

.pro-cta-btn:hover {
    background: #C10063;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 0, 126, 0.3);
}

@media (max-width: 900px) {
    .pro-context-grid {
        grid-template-columns: 1fr;
    }

    .pro-cta-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .player-sidebar {
        display: none;
    }

    .player-header {
        padding: 0 20px;
    }

    .player-main {
        padding: 40px 20px;
    }

    .glass-card,
    .exercise-card {
        padding: 30px;
        border-radius: 30px;
    }
}
@keyframes cta-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 175, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(255, 71, 175, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 175, 0); }
}
