html {
    font-size: 14px; /* Giriş yapmamış kullanıcılar için varsayılan */
    height: 100%;
}

/* Kullanıcı yazı boyutu tercihleri — html element'ine class olarak uygulanır */
html.font-size-small  { font-size: 13px; }
html.font-size-normal { font-size: 15px; }
html.font-size-large  { font-size: 17px; }

body {
    font-size: 0.875rem;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Links */
a { color: #2e7d32; }
a:hover { color: #1b5e20; }

/* Buttons */
.btn-primary { background-color: #2e7d32; border-color: #27692b; }
.btn-primary:hover { background-color: #1b5e20; border-color: #1a5520; }
.btn-outline-primary { color: #2e7d32; border-color: #2e7d32; }
.btn-outline-primary:hover { background-color: #2e7d32; border-color: #2e7d32; color: #fff; }

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #66bb6a;
}

/* Navbar */
.navbar-site {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #43a047 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar-site .navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}
.navbar-site .nav-link {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem !important;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    padding: 3rem 1rem;
    text-align: center;
}
.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1b5e20;
}
.hero-section p {
    color: #555;
    max-width: 600px;
    margin: 0.75rem auto 1.5rem;
}

/* Feature cards */
.feature-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

/* Stats */
.stat-box {
    text-align: center;
    padding: 1.5rem 1rem;
}
.stat-box .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2e7d32;
}
.stat-box .stat-label {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    width: 100%;
    line-height: 50px;
    font-size: 0.75rem;
    background-color: #f5f5f5;
    margin-top: auto;
}

/* Yazar/Yayınevi atama modalları — arama sonucu satırları (library-entity-assign.js) */
.entity-row {
    transition: background-color 0.15s ease;
}
.entity-row:hover {
    background-color: #f1f8f2;
}
.entity-create-row {
    background-color: #fafafa;
}
.entity-create-row:hover {
    background-color: #e8f5e9;
}

/* Mobil genel düzeltmeler */
@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 1.5rem; }
    .hero-section { padding: 2rem 1rem !important; }
    .stat-box .stat-number { font-size: 1.5rem; }
    /* Tablo taşmasını önle */
    .table-responsive { -webkit-overflow-scrolling: touch; }
    /* Modal tam ekran genişliği */
    .modal-dialog { margin: 0.5rem; }
}

/* Dokunma hedefi minimumu (44px) — ikon-only küçük butonlar için (proje geneli) */
.tap-target {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown menü satırları (profil dropdown'ı dahil) — Bootstrap varsayılanı çok kısa */
.dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Yatay kaydırmalı mobil pill nav barları — sağ kenarda kaydırma ipucu (fade) */
.mobile-nav-scroll {
    position: relative;
}
.mobile-nav-scroll::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.95));
    pointer-events: none;
}

/* iPhone çentik / home-indicator güvenli alan desteği (viewport-fit=cover ile birlikte çalışır) */
.safe-area-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
.safe-area-top { padding-top: env(safe-area-inset-top, 0px); }

/* Profil avatarı — boyut/şekil tüm profil sayfalarında ortak, arka plan sayfaya göre değişir
   (.profile-avatar = hero banner üzerinde yarı-saydam, .profile-avatar-solid = düz kart üzerinde) */
.profile-avatar-base {
    width: 72px; height: 72px;
    border-radius: 50%;
    font-size: 1.9rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff;
}
.profile-avatar-solid {
    background: linear-gradient(135deg, #3d3a8e, #7c6fcd);
}
@media (max-width: 767.98px) {
    .profile-avatar-base { width: 58px; height: 58px; font-size: 1.5rem; }
}
