/* ============================================================
 * YENİÇERİ KİTABEVİ - KIRMIZI & SİYAH (RED & BLACK) PREMIUM TEMA
 * Palette: Deep Black (#0a0a0c), Obsidian (#121216), Crimson Red (#e61919), Dark Ruby (#8d0801)
 * ============================================================ */

:root {
    --primary-color: #0a0a0c;
    --primary-surface: #141418;
    --accent-color: #e61919;
    --accent-hover: #b80d0d;
    --accent-glow: rgba(230, 25, 25, 0.3);
    --dark-card: #18181f;
    --bg-light: #f8f9fa;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(230, 25, 25, 0.18);
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: #111115;
    overflow-x: hidden;
}

/* 1. TOP BAR */
.top-bar {
    background-color: #000000;
    color: #d1d5db;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--accent-color) !important;
}

.top-bar a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--accent-color);
}

/* 2. HEADER & BRAND */
header {
    background-color: #0e0e12 !important;
    border-bottom: 1px solid #22222a !important;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.65rem;
    letter-spacing: -0.5px;
    color: #ffffff !important;
}

.navbar-brand i {
    color: var(--accent-color) !important;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.search-bar-group .form-control {
    border-radius: 50px 0 0 50px;
    padding-left: 1.25rem;
    border: 2px solid #2a2a35;
    background-color: #16161c;
    color: #ffffff;
}

.search-bar-group .form-control::placeholder {
    color: #8e8ea0;
}

.search-bar-group .form-control:focus {
    background-color: #1c1c24;
    color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.search-bar-group .form-select {
    border-top: 2px solid #2a2a35;
    border-bottom: 2px solid #2a2a35;
    border-left: none;
    border-right: none;
    background-color: #1c1c24;
    color: #ffffff;
}

.search-bar-group .btn-search {
    border-radius: 0 50px 50px 0;
    background-color: var(--accent-color);
    color: #ffffff;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border: 2px solid var(--accent-color);
    font-weight: 700;
}

.search-bar-group .btn-search:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* 3. CATEGORY NAVIGATION BAR */
.cat-nav {
    background-color: #121216;
    border-bottom: 2px solid #22222c;
}

.cat-nav .nav-link {
    font-weight: 700;
    color: #e5e7eb;
    padding: 0.8rem 1.25rem;
    transition: all 0.2s ease-in-out;
}

.cat-nav .nav-link:hover, .cat-nav .nav-link.active {
    color: #ffffff;
    background-color: var(--accent-color);
}

/* 4. SECTION TITLES */
.section-title {
    position: relative;
    font-weight: 800;
    color: #0a0a0c;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-top: 6px;
}

/* 5. BOOK CARDS */
.book-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(230, 25, 25, 0.2);
    border-color: var(--accent-color);
}

.book-cover-wrapper {
    position: relative;
    padding-top: 135%;
    background: #0f0f13;
    overflow: hidden;
}

.book-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.book-card:hover .book-cover-img {
    transform: scale(1.08);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(230, 25, 25, 0.5);
    z-index: 2;
}

.book-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-title {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.35;
    color: #0a0a0c;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
}

.book-author {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.book-price-box {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent-color);
}

.old-price {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.btn-add-cart {
    background-color: #0a0a0c;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 700;
    padding: 0.65rem 1rem;
    transition: all 0.2s ease;
    width: 100%;
    border: none;
}

.btn-add-cart:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 6px 15px var(--accent-glow);
}

/* 6. THEMATIC COLLECTIONS */
.collection-card {
    background: linear-gradient(135deg, #000000 0%, #1a1a22 100%);
    border: 2px solid #2a2a35;
    border-radius: 20px;
    padding: 2.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.collection-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: rgba(230, 25, 25, 0.1);
    border-radius: 50%;
}

/* 7. ADMIN STYLING */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 265px;
    background-color: #060608;
    color: #f3f4f6;
    flex-shrink: 0;
    border-right: 2px solid #1f1f28;
    transition: all 0.3s;
}

.admin-sidebar .nav-link {
    color: #9ca3af;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #ffffff;
    background-color: rgba(230, 25, 25, 0.15);
    border-left-color: var(--accent-color);
}

.admin-content {
    flex-grow: 1;
    background-color: #f3f4f6;
    padding: 2rem;
}

/* Sitenin genel koyu "header" stili yönetim paneli başlığını ezmesin */
.admin-content > header {
    background-color: transparent !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* 8. FOOTER */
footer {
    background-color: #060608;
    color: #9ca3af;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 3px solid var(--accent-color);
}

footer h5 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-color);
}
