/* =============================================== */
/* MOBILE-MENU.CSS - Mobil menü stilleri */
/* Hamburger menü içindeki tüm öğeler */
/* =============================================== */

/* =============================================== */
/* MOBİL MENÜ OVERLAY */
/* =============================================== */

.mobile-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay-menu.active {
    display: block;
    opacity: 1;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-overlay-menu.active .mobile-menu-content {
    transform: translateX(0);
}

/* =============================================== */
/* MOBİL MENÜ HEADER */
/* =============================================== */

.mobile-menu-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    flex-shrink: 0;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.mobile-menu-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.close-mobile-menu {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-light-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.close-mobile-menu:hover {
    background: var(--surface-light);
    transform: rotate(90deg);
}

/* =============================================== */
/* MOBİL MENÜ SCROLL ALANI */
/* =============================================== */

.mobile-menu-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 20px 0;
}

/* Scrollbar stilleri */
.mobile-menu-scroll::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.mobile-menu-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* =============================================== */
/* KİTAP BİLGİSİ (Reader sayfası için) */
/* =============================================== */

.mobile-book-info {
    text-align: center;
    padding: 15px;
    margin: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.book-title-mobile {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

/* =============================================== */
/* MOBİL NAVİGASYON (Ana Sayfa, Kitaplığım, Sözlüğüm) */
/* =============================================== */

.mobile-nav {
    display: flex;
    flex-direction: column;
    margin: 15px 15px 10px 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}

.mobile-nav a {
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a i {
    width: 22px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.mobile-nav a:hover {
    background: #f8f9fa;
}

.mobile-nav a.active {
    background: rgba(44, 85, 48, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-nav a.active i {
    color: var(--primary-color);
}

/* =============================================== */
/* MOBİL AYARLAR LİSTESİ (Reader özellikleri) */
/* =============================================== */

.mobile-settings-list {
    margin: 15px 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}

.mobile-setting-item {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-setting-item:last-child {
    border-bottom: none;
}

.mobile-setting-item:hover {
    background: #f8f9fa;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.setting-label i {
    width: 22px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Toggle switch (Yazma modu, Karanlık mod) */
.setting-toggle {
    width: 44px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
}

.setting-toggle.active {
    background: var(--primary-color);
}

.toggle-switch {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.setting-toggle.active .toggle-switch {
    left: 22px;
}

/* Font boyutu butonu */
.font-controls-single {
    display: flex;
    align-items: center;
}

.font-cycle-btn-mobile {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s;
}

.font-cycle-btn-mobile:hover {
    background: #e0e0e0;
}

.font-cycle-btn-mobile i {
    color: var(--primary-color);
}

/* Sağ ikon (yer işareti, tam ekran için) */
.setting-icon {
    color: var(--text-medium);
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

/* =============================================== */
/* MOBİL BÖLÜMLER DROPDOWN (Reader için) */
/* =============================================== */

.mobile-dropdown-list {
    max-height: 250px;
    overflow-y: auto;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.mobile-dropdown-list li {
    padding: 12px 20px;
    list-style: none;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 14px;
    transition: background 0.2s;
}

.mobile-dropdown-list li:hover {
    background: #f0f0f0;
}

.mobile-dropdown-list li:last-child {
    border-bottom: none;
}

.loading-item {
    text-align: center;
    color: #999;
    padding: 20px !important;
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================== */
/* MOBİL USER DROPDOWN CONTAINER */
/* =============================================== */

.mobile-user-dropdown-container {
    padding: 15px 15px 5px 15px;
    border-bottom: 1px solid #eee;
    background: rgba(44, 85, 48, 0.03);
}

/* =============================================== */
/* MOBİL DİL SEÇİCİ */
/* =============================================== */

.mobile-menu-section {
    margin: 15px 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}

.mobile-menu-section select {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
    border-top: 1px solid #eee;
}

.mobile-menu-section select:focus {
    background: #f8f9fa;
}

/* =============================================== */
/* DEMO BUTONU (mobil) */
/* =============================================== */

.demo-button.mobile {
    width: 100%;
    padding: 14px;
    margin: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

/* =============================================== */
/* DARK MODE */
/* =============================================== */

body.dark-mode .mobile-menu-content {
    background: #1a1a1a;
}

body.dark-mode .mobile-menu-header {
    background: #1a1a1a;
    border-bottom-color: #333;
}

body.dark-mode .mobile-menu-title {
    color: #fff;
}

body.dark-mode .close-mobile-menu {
    background: #333;
    border-color: #444;
    color: #fff;
}

body.dark-mode .mobile-nav {
    background: #2a2a2a;
    border-color: #333;
}

body.dark-mode .mobile-nav a {
    color: #e0e0e0;
    border-bottom-color: #333;
}

body.dark-mode .mobile-nav a:hover {
    background: #333;
}

body.dark-mode .mobile-nav a.active {
    background: rgba(143, 185, 150, 0.15);
    color: #8fb996;
}

body.dark-mode .mobile-settings-list {
    background: #2a2a2a;
    border-color: #333;
}

body.dark-mode .mobile-setting-item {
    border-bottom-color: #333;
}

body.dark-mode .mobile-setting-item:hover {
    background: #333;
}

body.dark-mode .setting-label {
    color: #fff;
}

body.dark-mode .setting-label i {
    color: #8fb996;
}

body.dark-mode .setting-toggle {
    background: #444;
}

body.dark-mode .setting-toggle.active {
    background: #8fb996;
}

body.dark-mode .font-cycle-btn-mobile {
    background: #333;
    border-color: #444;
    color: #fff;
}

body.dark-mode .mobile-book-info {
    background: #2a2a2a;
}

body.dark-mode .book-title-mobile {
    color: #fff;
}

body.dark-mode .mobile-dropdown-list {
    background: #2a2a2a;
    border-top-color: #333;
}

body.dark-mode .mobile-dropdown-list li {
    border-bottom-color: #333;
    color: #e0e0e0;
}

body.dark-mode .mobile-dropdown-list li:hover {
    background: #333;
}

body.dark-mode .mobile-menu-section {
    background: #2a2a2a;
    border-color: #333;
}

body.dark-mode .mobile-menu-section select {
    background: #2a2a2a;
    color: #e0e0e0;
    border-top-color: #333;
}

body.dark-mode .mobile-user-dropdown-container {
    background: rgba(143, 185, 150, 0.1);
    border-bottom-color: #333;
}