/* Font Display Optimization */
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/webfonts/fa-brands-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/webfonts/fa-solid-900.woff2') format('woff2');
}

/* Genel Stiller */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

main {
    flex: 1;
}

/* Header Stiller */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease, border-radius 0.2s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Mobil header: sabit (sticky) ve modern görünüm */
@media (max-width: 991px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1030;
        padding-top: calc(0.5rem + env(safe-area-inset-top, 0));
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
        padding-left: calc(1rem + env(safe-area-inset-left, 0));
        padding-right: calc(1rem + env(safe-area-inset-right, 0));
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
        border-radius: 0;
        min-height: 56px;
        align-items: center;
    }
    .navbar .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0.75rem;
    }
    .navbar-brand {
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }
    .navbar .mobile-navbar-actions {
        flex-shrink: 0;
        gap: 0.5rem;
    }
    .navbar .mobile-navbar-actions .btn {
        padding: 0.4rem 0.65rem;
        border-radius: 10px;
        font-size: 0.9rem;
        border-width: 1.5px;
        transition: transform 0.15s ease, background-color 0.15s ease;
    }
    .navbar .mobile-navbar-actions .btn:active {
        transform: scale(0.97);
    }
}

/* Kart Stiller */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: #2c3e50;
    font-weight: bold;
}

/* Video Oynatıcı Stiller */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Alıştırma Stiller */
.question {
    font-weight: 500;
    margin-bottom: 1rem;
}

.form-check {
    margin-bottom: 0.5rem;
}

/* İlerleme Çubuğu */
.progress {
    height: 10px;
    border-radius: 5px;
}

.progress-bar {
    background-color: #3498db;
}

/* Footer Stiller */
footer {
    background: #23272e;
    color: #e0e6ed;
    padding: 48px 0 24px 0;
    border-top: 2px solid #181b1f;
    font-size: 1.05rem;
}
footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}
footer .footer-col {
    flex: 1 1 260px;
    min-width: 220px;
    margin-bottom: 24px;
}
footer .footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer ul li {
    margin-bottom: 7px;
}
footer a {
    color: #b6f7c6;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: #27ae60;
    text-decoration: underline;
}
footer .footer-bottom {
    text-align: center;
    color: #bfc9d1;
    font-size: 0.98rem;
    margin-top: 18px;
    border-top: 1px solid #181b1f;
    padding-top: 12px;
}
@media (max-width: 991px) {
    footer .footer-container {
        flex-direction: column;
        gap: 0;
    }
    footer .footer-col {
        min-width: 0;
        margin-bottom: 32px;
    }
}
body.dark-mode footer {
    background: #181b1f !important;
    color: #e0e6ed !important;
    border-top: 2px solid #23272e;
}
body.dark-mode footer .footer-title {
    color: #b6f7c6;
}
body.dark-mode footer a {
    color: #b6f7c6 !important;
}
body.dark-mode footer a:hover {
    color: #27ae60 !important;
}
body.dark-mode footer .footer-bottom {
    color: #888;
    border-top: 1px solid #23272e;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .card {
        margin-bottom: 1rem;
    }
    .col-md-8, .col-md-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    footer {
        padding: 10px 0 6px 0 !important;
        font-size: 0.97rem !important;
    }
    footer .footer-container {
        gap: 2px !important;
        padding: 0 2px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    footer .footer-col {
        margin-bottom: 4px !important;
        min-width: 0 !important;
        text-align: center !important;
        padding: 0 !important;
    }
    footer .footer-title {
        margin-bottom: 3px !important;
        font-size: 1.01rem !important;
    }
    footer ul li {
        margin-bottom: 2px !important;
        line-height: 1.25 !important;
    }
    .address-line {
        display: none !important;
    }
    footer .footer-bottom {
        font-size: 0.93rem !important;
        margin-top: 4px !important;
        padding-top: 3px !important;
        text-align: center !important;
    }
    footer p {
        margin-top: 2px !important;
        margin-bottom: 2px !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }
    #iletisim {
        display: none !important;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Özel Buton Stiller */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Form Stiller */
.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Alert Stiller */
.alert {
    border-radius: 5px;
    border: none;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Profil Sayfası Stiller */
.profile-header {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

/* Ana sayfa ders kartları */
.lesson-card {
    min-height: 180px;
    box-shadow: 0 4px 16px rgba(44,62,80,0.13), 0 1.5px 6px rgba(44,62,80,0.10);
    transition: box-shadow 0.2s, background 0.2s;
    border-radius: 12px;
    background: #fff;
}
.lesson-card:hover {
    box-shadow: 0 8px 32px rgba(44,62,80,0.18), 0 3px 12px rgba(44,62,80,0.13);
}
.lesson-card.done {
    background: #f3f3f3;
    filter: grayscale(0.2);
    border: 1.5px solid #e0e0e0;
}
.lesson-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.lesson-card .card-text {
    font-size: 0.95rem;
    color: #666;
}
.lesson-card .badge {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4em 0.8em;
}
.lesson-card .btn {
    font-size: 0.95rem;
}

/* Filtre butonları */
.filter-btn.active, .type-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

@media (max-width: 768px) {
    .lesson-card {
        min-height: 140px;
        margin-bottom: 1rem;
    }
    .lesson-card .card-title {
        font-size: 1rem;
    }
    .lesson-card .card-text {
        font-size: 0.9rem;
    }
}

/* Tamamlanma Rozeti */
.completion-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Badge Stilleri */
.badge {
    padding: 0.5em 1em;
    font-weight: normal;
}

/* Video iframe'ini responsive yap */
.responsive-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 oranı */
    height: 0;
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}
.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .responsive-video {
        max-width: 100%;
        padding-bottom: 56.25%;
    }
}

body.dark-mode {
    background: #181a1b !important;
    color: #f8f8f8 !important;
}
body.dark-mode .navbar, body.dark-mode .bg-primary {
    background: #23272b !important;
}
body.dark-mode .card, body.dark-mode .modal-content, body.dark-mode .bg-light {
    background: #23272b !important;
    color: #f8f8f8 !important;
    border-color: #444 !important;
}
body.dark-mode .form-control, body.dark-mode .form-select {
    background: #23272b !important;
    color: #f8f8f8 !important;
    border-color: #666 !important;
}
body.dark-mode .btn-primary {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    color: #fff !important;
}
body.dark-mode .btn-outline-secondary, body.dark-mode .btn-outline-primary {
    color: #f8f8f8 !important;
    border-color: #aaa !important;
}
body.dark-mode .btn-outline-danger {
    color: #ff4d4f !important;
    border-color: #ff4d4f !important;
}
body.dark-mode .btn-success {
    background: #2ecc71 !important;
    border-color: #2ecc71 !important;
    color: #fff !important;
}
body.dark-mode .progress-bar {
    background: #27ae60 !important;
    color: #fff !important;
}
body.dark-mode .alert {
    background: #23272b !important;
    color: #f8f8f8 !important;
    border-color: #444 !important;
}
body.dark-mode .list-group-item {
    background: #23272b !important;
    color: #f8f8f8 !important;
    border-color: #444 !important;
}
body.dark-mode .badge {
    background: #375a7f !important;
    color: #fff !important;
}
body.dark-mode .badge.bg-warning {
    background: #f1c40f !important;
    color: #222 !important;
}
body.dark-mode .badge.bg-success {
    background: #27ae60 !important;
    color: #fff !important;
}
body.dark-mode .badge.bg-secondary {
    background: #888 !important;
    color: #fff !important;
}
body.dark-mode .text-muted {
    color: #e0e0e0 !important;
}
body.dark-mode .nav-link, body.dark-mode .btn-link {
    color: #7ed6df !important;
}
body.dark-mode .nav-link.active, body.dark-mode .btn-link.active {
    color: #fff !important;
    background: #27ae60 !important;
}
body.dark-mode .category-btn.active, body.dark-mode .filter-btn.active, body.dark-mode .level-btn.active {
    background: #27ae60 !important;
    color: #fff !important;
    border-color: #27ae60 !important;
}
body.dark-mode .category-btn, body.dark-mode .filter-btn, body.dark-mode .level-btn {
    background: #23272b !important;
    color: #f8f8f8 !important;
    border-color: #444 !important;
}
body.dark-mode .form-label, body.dark-mode label {
    color: #f8f8f8 !important;
}
body.dark-mode .card-title, body.dark-mode .card-text, body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #fff !important;
}

@media (max-width: 991px) {
  .lesson-card .d-flex.justify-content-center.mt-2.gap-1 {
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    max-width: 100%;
  }
  .lesson-card .badge {
    margin: 0 0 4px 0 !important;
    min-width: 70px;
    max-width: 90%;
    width: 90%;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
  }
}

body.dark-mode .lesson-card {
    background: #23272e;
    border: 1.5px solid #23272e;
    color: #e0e6ed;
}
body.dark-mode .lesson-card.done {
    background: #1e2a1e;
    border: 1.5px solid #27ae60;
    color: #e0ffe0;
}
body.dark-mode .lesson-card .card-title,
body.dark-mode .lesson-card .card-text {
    color: #e0e6ed;
}
body.dark-mode .lesson-card.done .card-title,
body.dark-mode .lesson-card.done .card-text {
    color: #b6f7c6;
}
body.dark-mode .lesson-card .card-footer {
    background: transparent;
}
body.dark-mode .lesson-card .btn-primary {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}
body.dark-mode .lesson-card .btn-primary:hover {
    background: #219150;
    border-color: #219150;
}
body.dark-mode .lesson-card .badge {
    background: #23272e;
    color: #e0e6ed;
    border: 1px solid #333a44;
}
body.dark-mode .lesson-card.done .badge {
    background: #1e2a1e;
    color: #b6f7c6;
    border: 1px solid #27ae60;
}
body.dark-mode .lesson-card .badge.bg-secondary {
    background: #444a54 !important;
    color: #fff !important;
    border: none;
}
body.dark-mode .lesson-card.done .badge.bg-secondary {
    background: #2e4a2e !important;
    color: #b6f7c6 !important;
    border: none;
}
body.dark-mode .lesson-card .badge.bg-success {
    background: #27ae60 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-warning {
    background: #f1c40f !important;
    color: #222 !important;
}
body.dark-mode .lesson-card .badge.bg-danger {
    background: #e67e22 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-primary {
    background: #2980b9 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-info {
    background: #00bcd4 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-dark {
    background: #23272e !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-light {
    background: #f4f6fa !important;
    color: #222 !important;
}
body.dark-mode .lesson-card .badge.bg-success,
body.dark-mode .lesson-card.done .badge.bg-success {
    background: #27ae60 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-secondary,
body.dark-mode .lesson-card.done .badge.bg-secondary {
    background: #444a54 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-warning,
body.dark-mode .lesson-card.done .badge.bg-warning {
    background: #f1c40f !important;
    color: #222 !important;
}
body.dark-mode .lesson-card .badge.bg-danger,
body.dark-mode .lesson-card.done .badge.bg-danger {
    background: #e67e22 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-primary,
body.dark-mode .lesson-card.done .badge.bg-primary {
    background: #2980b9 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-info,
body.dark-mode .lesson-card.done .badge.bg-info {
    background: #00bcd4 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-dark,
body.dark-mode .lesson-card.done .badge.bg-dark {
    background: #23272e !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-light,
body.dark-mode .lesson-card.done .badge.bg-light {
    background: #f4f6fa !important;
    color: #222 !important;
}
body.dark-mode .lesson-card .card-footer {
    background: transparent;
}
body.dark-mode .lesson-card .btn-primary {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}
body.dark-mode .lesson-card .btn-primary:hover {
    background: #219150;
    border-color: #219150;
}
body.dark-mode .lesson-card .badge {
    background: #23272e;
    color: #e0e6ed;
    border: 1px solid #333a44;
}
body.dark-mode .lesson-card.done .badge {
    background: #1e2a1e;
    color: #b6f7c6;
    border: 1px solid #27ae60;
}
body.dark-mode .lesson-card .badge.bg-secondary {
    background: #444a54 !important;
    color: #fff !important;
    border: none;
}
body.dark-mode .lesson-card.done .badge.bg-secondary {
    background: #2e4a2e !important;
    color: #b6f7c6 !important;
    border: none;
}
body.dark-mode .lesson-card .badge.bg-success {
    background: #27ae60 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-warning {
    background: #f1c40f !important;
    color: #222 !important;
}
body.dark-mode .lesson-card .badge.bg-danger {
    background: #e67e22 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-primary {
    background: #2980b9 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-info {
    background: #00bcd4 !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-dark {
    background: #23272e !important;
    color: #fff !important;
}
body.dark-mode .lesson-card .badge.bg-light {
    background: #f4f6fa !important;
    color: #222 !important;
}
body.dark-mode footer {
    background: #181b1f !important;
    color: #e0e6ed !important;
}
body.dark-mode footer a {
    color: #b6f7c6 !important;
    text-decoration: underline;
}
body.dark-mode footer a:hover {
    color: #27ae60 !important;
}

.info-card-seo {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    box-shadow: 0 2px 12px rgba(44,62,80,0.07);
    transition: box-shadow 0.2s, border 0.2s, background 0.2s;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.info-card-seo h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    font-weight: 700;
}
.info-card-seo p {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 0;
}
.info-card-seo i {
    color: #27ae60;
}
.info-card-seo:hover {
    box-shadow: 0 6px 24px rgba(44,62,80,0.13);
    border: 1.5px solid #27ae60;
}
@media (max-width: 991px) {
    .info-card-seo {
        min-height: 200px;
        margin-bottom: 16px;
    }
}

/* SEO kartları mobil: metin taşmasını önle */
.seo-cards-wrap .row {
    margin-left: 0;
    margin-right: 0;
}
.info-card-seo {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    max-width: 100%;
    box-sizing: border-box;
}
.info-card-seo h3,
.info-card-seo p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
@media (max-width: 768px) {
    .seo-cards-wrap .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .info-card-seo {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}
body.dark-mode .info-card-seo {
    background: #23272e;
    border: 1.5px solid #333a44;
    color: #e0e6ed;
    box-shadow: 0 2px 12px rgba(44,62,80,0.18);
}
body.dark-mode .info-card-seo h3 {
    color: #b6f7c6;
}
body.dark-mode .info-card-seo p {
    color: #bfc9d1;
}
body.dark-mode .info-card-seo i {
    color: #27ae60;
}
body.dark-mode .info-card-seo:hover {
    border: 1.5px solid #27ae60;
    box-shadow: 0 6px 24px rgba(39,174,96,0.13);
}

.filter-area {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.07);
    padding: 18px 20px 10px 20px;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
}
body.dark-mode .filter-area {
    background: #23272e;
    box-shadow: 0 2px 12px rgba(44,62,80,0.18);
}
.filter-area .form-control {
    max-width: 220px;
    min-width: 120px;
    background: #f8f9fa;
    border-radius: 7px;
    border: 1.5px solid #e0e0e0;
}
body.dark-mode .filter-area .form-control {
    background: #181b1f;
    color: #e0e6ed;
    border: 1.5px solid #333a44;
}
.filter-area .btn-group, .filter-area .btn {
    margin-bottom: 0 !important;
}
.filter-area .btn {
    border-radius: 7px !important;
    font-weight: 500;
    font-size: 1.01em;
    padding: 7px 18px;
    transition: background 0.15s, color 0.15s;
}
.filter-area .btn.active, .filter-area .btn:active {
    background: #27ae60 !important;
    color: #fff !important;
    border-color: #27ae60 !important;
}
body.dark-mode .filter-area .btn.active, body.dark-mode .filter-area .btn:active {
    background: #27ae60 !important;
    color: #fff !important;
    border-color: #27ae60 !important;
}
@media (max-width: 991px) {
    .filter-area {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 8px 8px 8px;
        gap: 10px 0;
    }
    .filter-area .form-control {
        max-width: 100%;
    }
}

/* Kategori filtre butonları (en üstteki) */
.category-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}
@media (max-width: 600px) {
    .category-group {
        flex-wrap: nowrap !important;
        overflow-x: unset !important;
        gap: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 8px;
        justify-content: space-between !important;
    }
    .category-group .duo-skill-card {
        min-width: 0 !important;
        max-width: none !important;
        width: 20% !important;
        flex: 1 1 20%;
        font-size: 0.93em !important;
        margin-bottom: 0 !important;
        padding: 10px 2px 10px 2px !important;
        border-radius: 10px !important;
        box-sizing: border-box;
    }
    .category-group .duo-skill-title {
        font-size: 0.97em !important;
    }
    .category-group .duo-skill-icon {
        font-size: 1.15em !important;
        margin-bottom: 2px !important;
    }
}

/* Aktif kategori vurgusu */
.duo-skill-card.active {
    border: 2.5px solid #1976d2;
    box-shadow: 0 2px 12px rgba(34, 152, 255, 0.10);
    background: #e3f0ff;
    color: #1976d2;
}
.duo-skill-card.active .duo-skill-title,
.duo-skill-card.active .duo-skill-icon {
    color: #1976d2 !important;
}

/* Seviye ve günlük hak kutularını mobilde yan yana hizala */
@media (max-width: 768px) {
  .profile-stats-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    width: 100%;
  }
  .profile-stats-row > div {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 991px) {
  .navbar .mobile-navbar-actions {
    display: flex !important;
  }
  .navbar .navbar-nav,
  .navbar .navbar-toggler,
  .navbar .navbar-collapse {
    display: none !important;
  }
}
@media (min-width: 992px) {
  .navbar .mobile-navbar-actions {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .filter-area {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 4px 6px 4px;
    gap: 8px 0;
  }
  .filter-area .form-control {
    max-width: 100%;
    min-width: 0;
  }
  .filter-area .d-flex.flex-wrap {
    flex-wrap: wrap !important;
    gap: 6px 0 !important;
  }
  .filter-area .btn-group {
    flex-wrap: wrap !important;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-start;
    margin-bottom: 6px !important;
  }
  .filter-area .btn {
    min-width: 60px;
    font-size: 0.95em;
    padding: 6px 8px;
    margin-bottom: 4px !important;
  }
}
@media (max-width: 400px) {
  .filter-area .btn {
    min-width: 45px;
    font-size: 0.85em;
    padding: 4px 4px;
  }
  .filter-area .form-control {
    font-size: 0.95em;
    padding: 7px 6px;
  }
}

/* Sidebar reklam z-index düzeltmesi */
.adsbygoogle {
    position: relative !important;
    z-index: 10 !important;
}

/* Accordion z-index düzeltmesi - reklamın arkasında kalması için */
.accordion,
.accordion-item,
.accordion-button,
.accordion-collapse {
    position: relative;
    z-index: 1;
}

/* Sidebar reklam wrapper - sabit konumlandırma */
.ad-sidebar-wrapper {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 300px;
    z-index: 100;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.ad-sidebar-wrapper .ad-sidebar {
    width: 100% !important;
    max-width: 100% !important;
}

/* Practice container'a margin ekle ki reklamın altında kalmasın */
.practice-container {
    margin-right: 340px !important;
}

/* Mobilde sidebar reklamını gizle ve container margin'ini kaldır */
@media (max-width: 991px) {
    .ad-sidebar-wrapper {
        display: none !important;
    }
    .practice-container {
        margin-right: 0 !important;
    }
    .adsbygoogle[data-ad-slot="1057929125"] {
        display: none !important;
    }
}

/* Dark mode için sidebar reklam */
body.dark-mode .ad-sidebar-wrapper {
    background: #23272e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Konuşma Balonları Stilleri */
.speech-bubbles-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}
.speech-bubble {
    position: relative;
    border-radius: 18px;
    padding: 14px 22px;
    margin: 0 0 0 0;
    max-width: 70%;
    font-size: 1.08em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    word-break: break-word;
    transition: background 0.2s;
}
.speech-bubble.left {
    align-self: flex-start;
    background: #e3f2fd;
    border-bottom-left-radius: 6px;
}
.speech-bubble.right {
    align-self: flex-end;
    background: #e8f5e9;
    border-bottom-right-radius: 6px;
}
.speech-bubble.left::after {
    content: '';
    position: absolute;
    left: 18px;
    bottom: -13px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: #e3f2fd;
    border-bottom: 0;
}
.speech-bubble.right::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: -13px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: #e8f5e9;
    border-bottom: 0;
}
.speech-bubble .speaker {
    font-weight: 600;
    margin-bottom: 3px;
    color: #1976d2;
    font-size: 0.98em;
}
.speech-bubble.right .speaker {
    color: #388e3c;
}
.speech-bubble .text {
    margin: 0;
    line-height: 1.5;
    color: #222;
}
.speech-bubble .translation {
    font-size: 0.93em;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}
@media (max-width: 600px) {
    .speech-bubble {
        max-width: 95%;
        font-size: 1em;
        padding: 10px 13px;
    }
    .speech-bubbles-container {
        gap: 8px;
    }
}
/* Dark Mode için Konuşma Balonları */
body.dark-mode .speech-bubble.left {
    background: #263159;
    color: #fff;
}
body.dark-mode .speech-bubble.right {
    background: #1b5e20;
    color: #fff;
}
body.dark-mode .speech-bubble.left::after {
    border-top-color: #263159;
}
body.dark-mode .speech-bubble.right::after {
    border-top-color: #1b5e20;
}
body.dark-mode .speech-bubble .speaker {
    color: #90caf9;
}
body.dark-mode .speech-bubble.right .speaker {
    color: #a5d6a7;
}
body.dark-mode .speech-bubble .translation {
    color: #b0bec5;
}

.audio-player-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 18px 10px 10px 10px;
    margin: 28px auto 0 auto;
    max-width: 420px;
    width: 100%;
}
@media (max-width: 600px) {
    .audio-player-box {
        max-width: 98%;
        padding: 12px 2px 6px 2px;
    }
}

/* Seviye slider'ı için özel stil */
.level-slider-wrap {
    min-width: 220px;
    margin-left: 18px !important;
    opacity: 1;
    transition: opacity 0.2s, filter 0.2s;
}
.level-slider-inactive {
    opacity: 0.5;
    filter: grayscale(0.7);
}

/* Arama barı ile slider arası mesafe */
.filter-area .level-slider-wrap {
    margin-left: 18px !important;
}

@media (max-width: 768px) {
    .filter-area .level-slider-wrap {
        margin-left: 0 !important;
        margin-top: 14px !important;
    }
}

@media (max-width: 600px) {
    .lesson-card .d-flex.flex-wrap.gap-2.mb-3 {
        flex-wrap: nowrap !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
        justify-content: flex-start !important;
    }
    .lesson-card .badge {
        font-size: 0.85em !important;
        padding: 0.25em 0.6em !important;
        border-radius: 7px !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
    }
    .lesson-card .card-body {
        padding: 0.85rem 0.7rem 0.7rem 0.7rem !important;
    }
    .lesson-card .card-title {
        font-size: 1em !important;
        margin-bottom: 0.35rem !important;
    }
    .lesson-card .card-text {
        font-size: 0.89em !important;
        margin-bottom: 0.7rem !important;
    }
    .lesson-card {
        min-height: 120px !important;
        padding: 0 !important;
    }
}

/* Ders içeriği tabloları mobilde yatay kaydırma */
.lesson-story-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.lesson-story-content table {
    width: 100%;
    max-width: 100%;
}
@media (max-width: 768px) {
    .lesson-story-content table {
        display: block;
        min-width: 480px;
    }
    .lesson-story-content table th,
    .lesson-story-content table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.9rem;
    }
}

/* Android uygulama indirme alt banner (sadece Android ziyaretçilere) */
.android-app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    animation: androidBannerSlideUp 0.35s ease-out;
}
@keyframes androidBannerSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes androidBannerSlideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}
.android-app-banner-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.android-app-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.android-app-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    overflow: hidden;
}
.android-app-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.android-app-banner-text {
    font-size: 0.95rem;
    line-height: 1.35;
    color: #e8eaf6;
}
.android-app-banner-text strong {
    color: #fff;
}
.android-app-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #1a237e;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.android-app-banner-cta:hover {
    color: #1a237e;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.android-app-banner-cta i {
    font-size: 1.2rem;
}
.android-app-banner-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
}
.android-app-banner-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}
.android-app-banner-close i {
    font-size: 1.1rem;
}