/* Genel Stiller */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar Özelleştirme */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Kitap Kartları */
.book-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.book-card .card-img-top {
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.book-card:hover .card-img-top {
    transform: scale(1.05);
}

.book-card .card-title {
    font-size: 1rem;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Yıldız Puanlama */
.rating {
    display: flex;
    align-items: center;
}

.rating i {
    font-size: 0.9rem;
}

.rating .text-warning {
    color: #ffc107 !important;
}

/* Yıldız Input */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: all 0.2s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input[type="radio"]:checked ~ label {
    color: #ffc107;
}

.rating-input label i {
    transition: all 0.2s ease;
}

.rating-input label:hover i {
    transform: scale(1.2);
}


.hero-search-input {
    flex: 1 1 auto;          /* Esnek, gerektiğinde küçülebilsin */
    min-width: 0;            /* EN ÖNEMLİSİ: Taşmayı önler, butonu itmez */
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
    outline: none;
}

.hero-search-input::placeholder {
    color: #9ca3af;
    font-size: 0.85rem;
}

.hero-search-input {
    flex: 1 1 auto;          /* Esnek, gerektiğinde küçülebilsin */
    min-width: 0;            /* EN ÖNEMLİSİ: Taşmayı önler, butonu itmez */
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
    outline: none;
}

.hero-search-input::placeholder {
    color: #9ca3af;
    font-size: 0.85rem;
}





.hero-search-box {
    margin-top: 1.5rem;
    background: rgba(15,23,42,0.4);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(148,163,184,0.6);
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    margin-left: 0;   /* masaüstünde sola dayalı */
    margin-right: 0;
}








/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* İstatistik Kartları */
.stats-section .card {
    transition: all 0.3s ease;
}

.stats-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Yorum Kartları */
.review-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 8px;
}

.review-item:hover {
    background-color: #f8f9fa;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: auto;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

/* Spoiler Uyarısı */
.spoiler-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
    font-size: 0.875rem;
}

/* Profil Avatar */
.profile-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Badge Stilleri */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Kart Gölgeleri */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Buton Animasyonları */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Liste Grupları */
.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form Kontrolleri */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Sayfalama */
.pagination {
    gap: 5px;
}

.pagination .page-link {
    border-radius: 8px;
    border: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Tablo Stilleri */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Alert Özelleştirme */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Dropdown Menü */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.dropdown-item {
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
    padding-left: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .book-card .card-img-top {
        height: 250px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .book-card .card-img-top {
        height: 200px;
    }
    
    .stats-section h3 {
        font-size: 1.5rem;
    }
}

/* Yükleme Animasyonu */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}


/* Header her sayfada en üstte olsun */
.site-header,
header,
.navbar {
    position: relative;
    z-index: 2000 !important;
}

/* Mesajlaşma alanı header'ın altında kalsın */
.messenger-wrapper,
.messenger-container {
    position: relative;
    z-index: 1;
}





@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Text Utilities */
.text-justify {
    text-align: justify;
}

/* Hover Effects */
.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}


.kb-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(15,23,42,0.15);
}

.kb-status-dot.online {
    background-color: #22c55e; /* yeşil */
}

.kb-status-dot.offline {
    background-color: #ef4444; /* kırmızı */
}


.book-cover-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
}

.book-cover-wrapper .book-cover-sidebar {
    display: block;
    width: 100%;
    height: auto;
}

/* Mavi şerit */
.book-cover-brand {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #2563eb;           /* Mavi şerit */
    color: #ffffff;
    text-align: center;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: lowercase;     /* www.okupaylas.com aynı kalsın */
}
