/* Kırşehir Bil Koleji 2D E-Bülten Kitaplığı CSS */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --accent-color: #fbbf24;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--light-bg);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 20px;
}

.logo-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--gray-100);
    padding: 5px;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.logo-text span {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 500;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

nav a i {
    font-size: 0.9rem;
}

/* Main Content */
main {
    min-height: calc(100vh - 140px);
}

/* Featured Banner - Kompakt Tasarım */
.featured-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.featured-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.featured-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.featured-badge-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.featured-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: sweep 2s infinite;
}

@keyframes glow {
    from {
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    }
    to {
        box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
    }
}

@keyframes sweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.featured-badge i {
    font-size: 1rem;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

.featured-cover {
    width: 100px;
    height: 130px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.featured-cover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.cover-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
    }
}

.featured-badge i {
    font-size: 1.1rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.featured-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--white), rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.featured-meta span:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.featured-meta i {
    font-size: 1rem;
}

.featured-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-featured {
    background: linear-gradient(135deg, var(--white), #f8f9fa);
    color: var(--primary-color);
    border: 2px solid var(--white);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 30px rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.btn-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-featured:hover::before {
    left: 100%;
}

.btn-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,255,255,0.4);
    background: var(--white);
    color: var(--primary-dark);
    border-color: rgba(255,255,255,0.9);
}

.btn-featured i {
    transition: transform 0.3s ease;
}

.btn-featured:hover i {
    transform: translateX(3px);
}

.btn-close-banner {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-banner:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.featured-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: backgroundFloat 8s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 0.8;
    }
}

.featured-banner.closing {
    animation: slideUp 0.4s ease-in forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
        max-height: 200px;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
        max-height: 0;
    }
}

/* Search Section */
.search-section {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--gray-200);
}

.search-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.search-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--gray-700);
}

.search-toggle-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary-color);
}

.search-toggle-btn span {
    flex-grow: 1;
    text-align: left;
    margin: 0 1rem;
    font-weight: 500;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.search-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.search-content {
    overflow: hidden;
    transition: all 0.4s ease;
    background: var(--white);
}

.search-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.search-content.expanded {
    max-height: 300px;
    opacity: 1;
    padding: 2rem 0;
}

.search-bar {
    position: relative;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.search-bar i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.1rem;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
    background: var(--gray-50);
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgb(37 99 235 / 0.1);
    background: var(--white);
}

.search-bar input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-controls select {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 140px;
}

.filter-controls select:focus,
.filter-controls select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* Bookcase Section */
.bookcase-section {
    padding: 3rem 0;
    background: var(--gray-50);
    min-height: 80vh;
}

.section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--gray-800);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bookcase-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

#books-count {
    color: var(--gray-600);
    font-weight: 500;
}

/* View options kaldırıldı */

/* Liste Görünümü - Varsayılan */
.bookcase-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.book-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.book-card.featured {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.3);
}

.book-card.featured::before {
    content: "ÖNE ÇIKAN";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: var(--gray-800);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.book-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.book-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.book-spine {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.book-card:hover .book-overlay {
    opacity: 0.9;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

/* Custom overlay resimler için */
.book-custom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    pointer-events: none;
    opacity: 0.9;
    border-radius: var(--border-radius);
}

/* Loading, Error ve No Data States */
.loading-books, .no-data-message, .error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--gray-600);
    grid-column: 1 / -1;
}

.loading-books .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-books p, .no-data-message p, .error-message p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: var(--gray-600);
}

.no-data-message h3, .error-message h3 {
    margin: 1rem 0 0.5rem 0;
    color: var(--gray-700);
    font-size: 1.25rem;
}

.btn-retry {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-retry:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Cover image için ek stiller - ASPECT RATIO KORUMALI */
.book-cover {
    background-size: cover !important;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.book-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.book-meta span {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
}

.book-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-read {
    flex: 1;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-read:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-share {
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-share:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Liste Görünümü Card Stilleri */
.book-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.book-cover {
    width: 120px;
    height: 160px;
    flex-shrink: 0;
    margin-right: 1.5rem;
    border-radius: var(--border-radius);
}

.book-info {
    flex: 1;
    padding: 0;
}

.book-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.book-info p {
    margin-bottom: 1rem;
    -webkit-line-clamp: 3;
}

.book-meta {
    margin-bottom: 1.5rem;
}

.book-actions {
    justify-content: flex-start;
    gap: 1rem;
}

.book-actions .btn-read {
    flex: 0 0 auto;
    min-width: 120px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-body {
    padding: 1.5rem;
}

.modal-info {
    display: flex;
    gap: 1.5rem;
}

.modal-cover {
    width: 150px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.modal-details {
    flex: 1;
}

.modal-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.modal-meta span {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    flex: 1;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* Footer */
footer {
    background: var(--gray-800);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    opacity: 0.8;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: var(--white);
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loading-screen p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Header Mobil Optimizasyonu - SOLA YASLAMA */
    header .container {
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 0.75rem 20px;
    }
    
    .logo-content {
        gap: 0.75rem;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
        padding: 3px;
    }
    
    .header-logo-icon {
        width: 18px;
        height: 18px;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
        margin-bottom: 0.1rem;
    }
    
    .logo-text span {
        font-size: 0.75rem;
    }
    
    .search-section {
        padding: 1rem 0;
    }
    
    .search-header {
        padding: 1rem 0;
    }
    
    .search-toggle-btn {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .search-content.expanded {
        padding: 1.5rem 0;
        max-height: 400px;
    }
    
    .search-bar {
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }
    
    .search-bar input {
        font-size: 1rem;
        padding: 0.875rem 1.25rem 0.875rem 2.75rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-controls select {
        width: 100%;
        min-width: auto;
        padding: 0.875rem 1rem;
        border-radius: var(--border-radius);
    }
    
    .bookcase-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .bookcase-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        text-align: left;
    }
    
    /* View options kaldırıldı */
    
    /* Grid görünümü mobilde */
    
    .modal-info {
        flex-direction: column;
    }
    
    .modal-cover {
        width: 100%;
        height: 150px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header Extra Small Mobile - SOLA YASLAMA */
    header .container {
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 0.5rem 15px;
    }
    
    .logo-image {
        width: 30px;
        height: 30px;
        padding: 2px;
    }
    
    .header-logo-icon {
        width: 16px;
        height: 16px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
        gap: 0.3rem;
    }
    
    .logo-text span {
        font-size: 0.7rem;
    }
    
    /* Featured Banner Extra Small Mobile */
    .featured-content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem 0;
        text-align: center;
    }
    
    .featured-left {
        gap: 0.5rem;
        order: 1;
    }
    
    .featured-cover {
        width: 70px;
        height: 90px;
        margin: 0 auto;
    }
    
    .featured-badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.65rem;
        gap: 0.3rem;
    }
    
    .featured-header {
        order: 2;
        padding: 0 10px;
    }
    
    .featured-header h2 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
    }
    
    .featured-header p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    .featured-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .featured-meta span {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        min-width: 100px;
        justify-content: center;
    }
    
    .featured-actions {
        order: 3;
        justify-content: center;
    }
    
    .btn-featured {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .bookcase-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 15px;
        justify-content: flex-start !important;
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-section {
        padding: 1.5rem 0;
    }
    
    .search-bar input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .bookcase-section {
        padding: 2rem 0;
    }
    
    .book-card {
        border-radius: var(--border-radius);
    }
    
    .book-info {
        padding: 1.25rem;
    }
    
    .book-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-read, .btn-share {
        width: 100%;
    }
    
    .book-actions {
        flex-direction: column;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    /* Header Tiny Mobile - SOLA YASLAMA */
    header .container {
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 0.5rem 10px;
    }
    
    .logo-image {
        width: 28px;
        height: 28px;
        padding: 2px;
    }
    
    .header-logo-icon {
        width: 14px;
        height: 14px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
        gap: 0.25rem;
    }
    
    .logo-text span {
        font-size: 0.65rem;
    }
    
    .featured-content {
        padding: 0.5rem 0;
        gap: 0.5rem;
    }
    
    .featured-cover {
        width: 60px;
        height: 80px;
    }
    
    .featured-badge {
        padding: 0.35rem 0.6rem;
        font-size: 0.6rem;
    }
    
    .featured-header h2 {
        font-size: 1rem;
    }
    
    .featured-header p {
        font-size: 0.75rem;
    }
    
    .featured-meta span {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        min-width: 90px;
    }
    
    .btn-featured {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: 110px;
    }
    
    header .container {
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 0.4rem 10px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.hidden { display: none; }
.visible { display: block; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}