/* style.css - V3.6 (PREMIUM PROGRESS BAR & LOGO FIX) */

:root {
    --brand-blue: #0eb2d1; --brand-blue-dark: #0988a1;
    --brand-yellow: #fffcb7; --brand-yellow-dark: #fde047;
    --brand-gray: #64748b; --brand-text: #334155;
    --bg-light: #f8fafc; --white: #ffffff;
    --success: #10b981; --danger: #ef4444; --warning: #f59e0b;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background: var(--bg-light); color: var(--brand-text); 
    font-family: var(--font-primary); font-size: 14px; line-height: 1.5; 
    overflow-x: hidden; min-height: 100vh;
}

/* --- HEADER & NAVBAR --- */
.brand-header {
    background: var(--white); padding: 15px 0; text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.brand-logo { height: 60px; width: auto; mix-blend-mode: multiply; }

.navbar { 
    background: var(--white); height: 60px; padding: 0 20px; display: flex; align-items: center;
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); justify-content: center;
}
.nav-scroll { flex: 1; max-width: 1200px; overflow-x: auto; display: flex; gap: 5px; scrollbar-width: none; align-items: center; justify-content: center; }
.nav-scroll::-webkit-scrollbar { display: none; }

.menu-item {
    padding: 8px 12px; border-radius: 8px; font-family: var(--font-heading); font-size: 13px; font-weight: 500;
    color: var(--brand-gray); cursor: pointer; white-space: nowrap; transition: 0.2s; display: flex; align-items: center; gap: 8px;
}
.menu-item:hover { background: var(--bg-light); color: var(--brand-blue); }
.menu-item.active { background: var(--brand-blue); color: white; box-shadow: 0 4px 12px rgba(14, 178, 209, 0.3); }

/* --- PREMIUM PROGRESS BAR (YENİ) --- */
.net-progress-container { 
    margin: 25px 0; 
    position: relative;
}
.net-labels { 
    display: flex; justify-content: space-between; 
    font-size: 12px; margin-bottom: 8px; font-weight: 700; color: var(--brand-gray);
}
.net-bar-bg { 
    height: 20px; background: #e2e8f0; border-radius: 10px; overflow: hidden; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06); /* İç gölge derinlik katar */
}
.net-bar-fill { 
    height: 100%; width: 0%; 
    border-radius: 10px; 
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Yaylanarak dolma efekti */
    
    /* MAVİDEN YEŞİLE GRADYAN */
    background: linear-gradient(90deg, var(--brand-blue) 0%, #22d3ee 50%, var(--success) 100%);
    
    /* HAREKETLİ ÇİZGİLER */
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
}

/* Işıltı Efekti */
.net-bar-fill::after {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; right: 0;
    background-image: linear-gradient(
        45deg, 
        rgba(255,255,255,0.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,0.15) 50%, 
        rgba(255,255,255,0.15) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 20px 20px;
    animation: moveStripes 1s linear infinite;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* --- DİĞER STİLLER --- */
.container { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { max-width: 1400px; margin: 0 auto; width: 100%; padding: 25px; flex: 1; }
.card { background: var(--white); border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: var(--card-shadow); transition: 0.2s; border: 1px solid rgba(0,0,0,0.02); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-family: var(--font-heading); font-weight: 600; font-size: 16px; border-bottom: 1px dashed rgba(0,0,0,0.1); padding-bottom: 10px; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media(max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 24px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 16px; border-bottom: 4px solid transparent; box-shadow: var(--card-shadow); transition: 0.3s; position: relative; overflow: hidden; }
.stat-card:hover { transform: translateY(-3px); }
.stat-card.blue { border-color: var(--brand-blue); } .stat-card.yellow { border-color: var(--brand-yellow-dark); } .stat-card.purple { border-color: #8b5cf6; } .stat-card.green { border-color: var(--success); }
.stat-val { font-size: 32px; font-weight: 800; color: var(--brand-text); margin: 5px 0; font-family: 'Poppins', sans-serif; }
.stat-icon { position: absolute; right: -10px; bottom: -10px; font-size: 80px; opacity: 0.08; transform: rotate(-15deg); }

/* Forms & Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 10000; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-content { background: var(--white); width: 95%; max-width: 500px; padding: 30px; border-radius: 16px; max-height: 90vh; overflow-y: auto; position: relative; animation: popIn 0.3s; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.modal-header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; font-size: 18px; color: var(--brand-blue); }

.form-group { margin-bottom: 15px; } 
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--brand-gray); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, textarea { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; outline: none; transition: 0.2s; font-size: 14px; }
.form-group input:focus, .form-group select:focus, textarea:focus { background: white; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(14, 178, 209, 0.1); }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 12px; background: #f1f5f9; color: var(--brand-gray); border-bottom: 2px solid #e2e8f0; font-weight: 600; }
td { padding: 12px; border-bottom: 1px solid #f1f5f9; color: var(--brand-text); }
tr:hover td { background-color: #f8fafc; }

/* Buttons */
.btn { padding: 10px 20px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; font-size: 13px; letter-spacing: 0.3px; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-primary { background: var(--brand-blue); color: white; }
.btn-secondary { background: var(--brand-yellow); color: #333; }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #94a3b8; transition: 0.2s; }
.close-btn:hover { color: var(--danger); transform: rotate(90deg); }
.admin-only { display: none !important; }

/* Login */
#loginScreen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: linear-gradient(135deg, #f1f5f9 0%, #e0f2fe 100%); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.login-card { background: var(--white); padding: 40px; border-radius: 24px; text-align: center; box-shadow: 0 20px 50px rgba(14, 178, 209, 0.15); width: 90%; max-width: 400px; }

/* Animations */
@keyframes popIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.section { display: none; animation: fadeIn 0.4s; } .section.active { display: block; }

#toast-container { position: fixed; top: 20px; right: 20px; z-index: 12000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: white; padding: 15px 20px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-left: 5px solid var(--brand-blue); display: flex; align-items: center; gap: 10px; animation: popIn 0.3s; font-weight: 500; }
.toast.success { border-color: var(--success); } .toast.error { border-color: var(--danger); } .toast.warning { border-color: var(--warning); }

/* Dark Mode */
body.dark-mode { --brand-text: #f1f5f9; --bg-light: #0f172a; --white: #1e293b; --brand-gray: #94a3b8; }
body.dark-mode .card, body.dark-mode .modal-content, body.dark-mode input, body.dark-mode select, body.dark-mode textarea, body.dark-mode .brand-header, body.dark-mode .navbar { background-color: #1e293b; border-color: #334155; color: #f1f5f9; }
body.dark-mode .brand-logo { filter: brightness(0) invert(1); mix-blend-mode: normal; }
/* --- KİTAPLIK RAF TASARIMI (V6.6 EKLEMELERİ) --- */

/* Okuma Paneli (Kronometre Alanı) */
.reading-panel {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fcd34d;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
    animation: popIn 0.5s;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.1);
}

.timer-display {
    font-size: 42px;
    font-weight: 800;
    color: #d97706;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
    letter-spacing: 2px;
}

/* Kitap Kartları Izgarası */
.bookshelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Tekil Kitap Kartı */
.book-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

/* Kitap Kapağı (İkonlu) */
.book-cover {
    height: 90px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 12px;
    position: relative;
}

/* İlerleme Çubuğu */
.progress-container {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kart içi Metinler */
.book-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-text);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 11px;
    color: var(--brand-gray);
    margin-bottom: 8px;
}

.book-stats {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
}
/* --- V6.9 PATCH: SAYI KUTUSU İYİLEŞTİRMELERİ --- */

/* 1. O küçük yukarı-aşağı okları (spinner) tüm tarayıcılarda gizle */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield; /* Firefox için */
}

/* 2. Hesap Makinesi ve Deneme Girişindeki Kutuları Genişlet */
/* .d-inp: Doğru Sayısı, .y-inp: Yanlış Sayısı, .calc-inp: Hesap Makinesi */
.calc-inp, .d-inp, .y-inp {
    width: 100% !important;      /* Bulunduğu kutuyu tam doldursun */
    min-width: 50px !important;  /* Çok daralmasın */
    height: 36px !important;     /* Yükseklik biraz artsın, parmakla basmak kolaylaşsın */
    padding: 0 5px !important;   /* İç boşluk */
    font-size: 15px !important;  /* Rakamlar daha okunaklı olsun */
    text-align: center;          /* Rakam her zaman ortada dursun */
    border-radius: 6px !important;
    background-color: #fff !important;
}

/* Yanlış sayısı kutusunun (kırmızı kenarlı olan) zeminini hafif kırmızı yapalım */
.y-inp {
    background-color: #fff5f5 !important;
    color: #c53030 !important;
}
