/* 
 * Szum Fiordu - CSS z poprawkami: ciemniejsze tło egzaminów, centrowanie modułów
 */

/* ===== 1. RESET & BASE ===== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

/* STANDARDOWE TŁO */
body { 
    font-family: 'Inter', sans-serif; 
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    background-attachment: fixed;
    color: #ffffff; 
    line-height: 1.6; 
    overflow-x: hidden; 
    min-height: 100vh;
}

/* CIEMNIEJSZE POMARAŃCZOWE TŁO EGZAMINÓW - POPRAWIONE */
body.exam-mode {
    background: linear-gradient(135deg, #0d0500 0%, #1a0800 50%, #0d0500 100%);
    background-attachment: fixed;
}

/* ===== 2. LAYOUT ===== */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

.main-content { 
    margin-top: 100px; 
    padding: 40px 24px; 
    min-height: calc(100vh - 100px); 
    position: relative;
}

/* ===== 3. NAVIGATION ===== */
.nav { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(34, 197, 94, 0.2); 
    z-index: 1000; 
    padding: 16px 0; 
}

.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    padding: 0 24px; 
    position: relative;
}

.logo { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 24px; 
    font-weight: 700; 
    color: #84cc16; 
    letter-spacing: 1px; 
    text-decoration: none; 
    transition: color 0.3s; 
}

.logo:hover { color: #a3e635; }

.nav-right { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    margin-left: auto; 
}

.nav-center { 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
}

.nav-links { 
    display: flex; 
    gap: 32px; 
    list-style: none; 
}

.nav-links a { 
    color: #ffffff; 
    text-decoration: none; 
    transition: color 0.3s; 
    font-weight: 500; 
}

.nav-links a:hover { color: #84cc16; }

/* ===== 4. BUTTONS - STAŁE KOLORY NIEZALEŻNIE OD TŁA ===== */
.btn { 
    padding: 12px 24px; 
    border-radius: 25px; 
    font-weight: 600; 
    text-decoration: none; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s; 
    display: inline-block; 
    text-align: center; 
    font-size: 14px; 
}

.btn-primary { 
    background: #84cc16 !important; 
    color: #000000 !important; 
}

.btn-primary:hover { 
    background: #a3e635 !important; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(132, 204, 22, 0.4); 
}

.btn-secondary { 
    background: transparent !important; 
    color: #84cc16 !important; 
    border: 2px solid #84cc16 !important; 
}

.btn-secondary:hover { 
    background: #84cc16 !important; 
    color: #000000 !important; 
}

.btn-danger { 
    background: transparent !important; 
    color: #ef4444 !important; 
    border: 2px solid #ef4444 !important; 
}

.btn-danger:hover { 
    background: #ef4444 !important; 
    color: #ffffff !important; 
}

.btn-orange { 
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%) !important; 
    color: #000000 !important; 
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-orange:hover { 
    background: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%) !important; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4); 
}

.btn-large { 
    padding: 18px 36px; 
    font-size: 18px; 
    border-radius: 30px; 
    font-weight: 700; 
}

.btn-full { width: 100%; }

/* ===== 5. HEADERS ===== */
.header { 
    text-align: center; 
    margin-bottom: 60px; 
}

.header-title, .hero-title { 
    font-size: 4rem; 
    font-weight: 700; 
    line-height: 1.1; 
    margin-bottom: 24px; 
    color: #ffffff; 
}

.header-subtitle, .hero-subtitle { 
    font-size: 1.25rem; 
    color: #84cc16; 
    margin-bottom: 16px; 
    font-weight: 500; 
}

.header-description, .hero-description { 
    font-size: 1.1rem; 
    color: #cccccc; 
    margin-bottom: 40px; 
    line-height: 1.6; 
}

/* ===== 6. SECTIONS ===== */
.hero, .features, .demo, .pricing { 
    background: transparent;
    position: relative;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.features, .demo, .pricing {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #84cc16;
    margin-bottom: 60px;
}

/* ===== 7. MODULE SYSTEM - CENTROWANIE POPRAWIONE ===== */
.module-title { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 2rem; 
    font-weight: 700; 
    color: #84cc16; 
    margin-bottom: 16px; 
    text-shadow: 0 0 20px rgba(132, 204, 22, 0.3);
    text-align: center; /* POPRAWKA: Centrowanie */
}

.module-stats { 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    margin-top: 24px; 
}

.stat-item { text-align: center; }

.stat-number { 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: #84cc16; 
}

.stat-label { 
    font-size: 0.9rem; 
    color: #888888; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* ===== 8. KARTY MODUŁÓW - R1 ===== */
.module-card { 
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.95), rgba(34, 34, 34, 0.8));
    border: 2px solid rgba(132, 204, 22, 0.3);
    border-radius: 25px; 
    padding: 30px; 
    text-align: center; /* POPRAWKA: Centrowanie tekstu w kartach */
    transition: all 0.4s ease; 
    position: relative; 
    min-height: 400px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.module-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #84cc16, #a3e635);
}

.module-card:hover { 
    transform: translateY(-8px); 
    border-color: rgba(132, 204, 22, 0.6);
    box-shadow: 0 20px 40px rgba(132, 204, 22, 0.2);
}

.module-card .module-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: #84cc16; 
    margin-bottom: 20px; 
    text-align: center; /* POPRAWKA: Wymuszenie centrowania */
    text-shadow: 0 0 15px rgba(132, 204, 22, 0.4);
}

/* STATUS BADGES */
.module-badge { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    padding: 8px 16px; 
    border-radius: 25px; 
    font-size: 11px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.module-badge.completed {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    border: 1px solid #22c55e;
}

/* MODULE FEATURES */
.module-features { 
    margin: 24px 0; 
    text-align: left; /* Features lista po lewej */
}

.module-feature { 
    display: flex; 
    align-items: center; 
    margin-bottom: 12px; 
    color: #cccccc;
    font-size: 14px;
}

.module-feature-icon { 
    color: #84cc16; 
    margin-right: 12px; 
    font-weight: bold;
    font-size: 16px;
}

/* CENA - R1 GRADIENT */
.module-price { 
    background: linear-gradient(135deg, #84cc16, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin: 25px 0 15px 0;
    font-family: 'Orbitron', sans-serif;
    filter: drop-shadow(0 0 10px rgba(132, 204, 22, 0.3));
}

.module-duration { 
    color: #888888; 
    text-align: center; 
    margin-bottom: 24px; 
    font-size: 14px;
}

/* ===== 9. SUBMODULE CARDS - S1 Z IKONKĄ ===== */
.submodule-card { 
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.95), rgba(34, 34, 34, 0.8));
    border: 2px solid rgba(132, 204, 22, 0.3); 
    border-radius: 25px; 
    padding: 25px; 
    transition: all 0.4s ease; 
    position: relative; 
    backdrop-filter: blur(8px);
    overflow: hidden;
}

/* GRADIENTOWY TOP - S1 */
.submodule-card::before { 
    content: ""; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 6px; 
    background: linear-gradient(90deg, #84cc16, #22c55e, #84cc16); 
}

/* OKRĄGŁA IKONKA W ROGU - DODANA Z S2 */
.submodule-card::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(132, 204, 22, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(132, 204, 22, 0.4);
    transition: all 0.3s ease;
}

.submodule-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 35px rgba(132, 204, 22, 0.25); 
    border-color: rgba(132, 204, 22, 0.5); 
}

.submodule-card:hover::after {
    background: rgba(132, 204, 22, 0.3);
    border-color: rgba(132, 204, 22, 0.6);
}

.submodule-card.locked {
    opacity: 0.6;
    border-color: rgba(107, 114, 128, 0.3);
}

.submodule-card.locked::before {
    background: linear-gradient(90deg, #6b7280, #9ca3af);
}

.submodule-card.locked::after {
    background: rgba(107, 114, 128, 0.2);
    border-color: rgba(107, 114, 128, 0.4);
}

.submodule-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #84cc16;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== 10. ACTION BUTTONS - STAŁE KOLORY ===== */
.action-btn { 
    display: block; 
    width: 100%; 
    padding: 14px 20px; 
    border-radius: 25px; 
    text-decoration: none; 
    text-align: center; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    font-size: 14px; 
    margin-bottom: 12px;
    border: 2px solid transparent;
}

/* NAUKA - STAŁE KOLORY */
.action-btn.learn { 
    background: linear-gradient(135deg, #1e40af 0%, #065f46 100%) !important; 
    color: #ffffff !important; 
    border-color: rgba(30, 64, 175, 0.3) !important;
}

.action-btn.learn:hover { 
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%) !important; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

/* EGZAMINY - PRAWDZIWE POMARAŃCZOWE KOLORY */
.action-btn.exam { 
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important; 
    color: #ffffff !important; 
    border-color: rgba(255, 107, 53, 0.3) !important;
}

.action-btn.exam:hover { 
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%) !important; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* POWTÓRKI - STAŁE KOLORY */
.action-btn.review { 
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%) !important; 
    color: #ffffff !important; 
    border-color: rgba(124, 58, 237, 0.3) !important;
}

.action-btn.review:hover { 
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.action-btn.disabled { 
    background: #374151 !important; 
    color: #6b7280 !important; 
    cursor: not-allowed; 
    border-color: transparent !important;
}

.action-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== 11. PROGRESS SYSTEM ===== */
.progress-bar-bg { 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
    height: 8px; 
    overflow: hidden; 
    margin-top: 8px;
}

.progress-bar { 
    background: linear-gradient(90deg, #84cc16, #22c55e); 
    height: 100%; 
    border-radius: 10px; 
    transition: width 0.6s ease; 
}

.submodule-progress {
    margin: 15px 0;
}

.progress-text {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 8px;
}

/* EXAM STATUS BADGES */
.exam-status {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exam-badge {
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-badge.passed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.exam-badge.not-passed {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* ===== 12. CARDS ===== */
.card { 
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.9), rgba(34, 34, 34, 0.7));
    border: 1px solid rgba(132, 204, 22, 0.2); 
    border-radius: 25px; 
    padding: 24px; 
    transition: all 0.3s ease; 
    backdrop-filter: blur(8px);
}

.card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(132, 204, 22, 0.15); 
    border-color: rgba(132, 204, 22, 0.3);
}

/* ===== 13. DRAG & DROP WORDS - CZYSTO ZIELONE BEZ GRADIENTU ===== */
.word-item { 
    background: rgba(34, 197, 94, 0.3) !important;
    border: 2px solid rgba(34, 197, 94, 0.6) !important; 
    border-radius: 12px; 
    padding: 16px; 
    text-align: center; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    color: #ffffff !important; 
    user-select: none; 
    font-size: 1.1rem; 
    margin-bottom: 16px;
    backdrop-filter: blur(5px);
}

.word-item:hover { 
    background: rgba(34, 197, 94, 0.4) !important;
    transform: scale(1.03); 
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4); 
    border-color: rgba(34, 197, 94, 0.8) !important;
}

/* POMARAŃCZOWE ZAZNACZENIE */
.word-item.selected { 
    background: linear-gradient(135deg, #f97316, #ea580c) !important; 
    border-color: #f97316 !important; 
    color: #ffffff !important; 
    transform: scale(1.05); 
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5); 
    font-weight: 700; 
}

.word-item.matched { 
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.8), rgba(22, 163, 74, 0.6)) !important;
    border-color: #22c55e !important; 
    color: #ffffff !important; 
    opacity: 0.7; 
    pointer-events: none; 
}

.word-item[draggable="true"] { cursor: grab; }
.word-item[draggable="true"]:active { cursor: grabbing; }

/* ===== 14. FORMS ===== */
.form-group { margin-bottom: 20px; }

.form-label { 
    display: block; 
    color: #cccccc; 
    font-weight: 500; 
    margin-bottom: 8px; 
    font-size: 14px; 
}

.form-input { 
    width: 100%; 
    padding: 12px 16px; 
    background: rgba(17, 17, 17, 0.8); 
    border: 2px solid rgba(132, 204, 22, 0.3); 
    border-radius: 25px; 
    color: #ffffff; 
    font-size: 16px; 
    transition: all 0.3s ease; 
    backdrop-filter: blur(5px);
}

.form-input:focus { 
    outline: none; 
    border-color: #84cc16; 
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.2); 
    background: rgba(17, 17, 17, 0.9);
}

.form-input::placeholder { color: #666666; }

/* ===== 15. GRIDS ===== */
.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
}

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

.submodules-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 30px; 
    margin-bottom: 60px; 
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== 16. ANIMATIONS ===== */
.success-animation { 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 2rem; 
    font-weight: 700; 
    z-index: 10000; 
    animation: fadeInOut 1s ease-out; 
    pointer-events: none; 
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    backdrop-filter: blur(10px);
}

.success-animation.success { 
    background: rgba(34, 197, 94, 0.95); 
    color: #ffffff; 
    border: 3px solid #22c55e; 
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4); 
}

.success-animation.error { 
    background: rgba(239, 68, 68, 0.95); 
    color: #ffffff; 
    border: 3px solid #ef4444; 
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4); 
}

@keyframes fadeInOut { 
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 
}

/* ===== 17. FEATURE CARDS ===== */
.feature-card {
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.9), rgba(34, 34, 34, 0.7));
    border: 2px solid rgba(132, 204, 22, 0.3);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #84cc16, #22c55e);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(132, 204, 22, 0.6);
    box-shadow: 0 20px 40px rgba(132, 204, 22, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(132, 204, 22, 0.3));
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.feature-description {
    color: #cccccc;
    line-height: 1.6;
    font-size: 15px;
}

/* ===== 18. STARTER MODULE - HOLOGRAPHIC PURPLE ===== */
.module-card.starter-module {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border: none;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
}

.module-card.starter-module::before {
    display: none;
}

.module-card.starter-module:hover {
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.6);
}

.module-card.starter-module .module-title {
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.8);
    font-weight: 900;
}

.module-card.starter-module .module-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
}

.module-card.starter-module .module-feature {
    color: rgba(255, 255, 255, 0.95);
}

.module-card.starter-module .module-feature-icon {
    color: #fff;
}

.module-card.starter-module .module-price {
    background: transparent;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
    filter: none;
}

.module-card.starter-module .module-duration {
    color: rgba(255, 255, 255, 0.8);
}

.module-card.starter-module .module-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.module-card.starter-module .btn-primary,
.module-card.starter-module .btn-orange {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #764ba2 !important;
    box-shadow: none;
}

.module-card.starter-module .btn-primary:hover,
.module-card.starter-module .btn-orange:hover {
    background: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3) !important;
}

/* ===== 19. UTILITIES ===== */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* ===== 20. RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container { padding: 0 16px; }
    .nav-center { display: none; }
    .logo { font-size: 20px; }
    .nav-right { gap: 12px; }
    .btn { padding: 10px 16px; font-size: 12px; }
    .main-content { padding: 20px 16px; }
    .container { padding: 0 16px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 20px; }
    .submodules-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .btn-large { padding: 14px 28px; font-size: 16px; }
    .hero-title, .header-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .module-title { font-size: 1.5rem; }
    .module-stats { flex-direction: column; gap: 20px; }
    .module-card .module-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .logo { font-size: 18px; }
    .nav-right { gap: 8px; }
    .btn { padding: 8px 12px; font-size: 11px; }
    .main-content { padding: 20px 12px; }
    .container { padding: 0 12px; }
    .btn-large { padding: 12px 20px; font-size: 14px; }
    .hero-title, .header-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .module-title { font-size: 1.3rem; }
    .module-card .module-title { font-size: 1.4rem; }
}