/* =====================================================
   MODERN KİTAPLAR SAYFASI STİLLERİ
   Rehabis Platform - Kitap Yönetimi
===================================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #1e9972 0%, #c2e3b5 100%);
    --success-gradient: linear-gradient(135deg, #52ffc8 0%, #daf5cf 100%);
    --dark-gradient: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* =====================================================
   HERO / SAYFA BAŞLIĞI - Modern Tasarım
===================================================== */
.page-hero {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(50px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    margin: 0 0 12px 0;
    font-size: 36px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-text p {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   BUTONLAR
===================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: #1e9972;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 153, 114, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.4);
    background: #afffc7ab;
	color: #085039;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: #495057;
    border: 2px solid #dee2e6;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #1e9972;
    color: #1e9972;
    transform: translateY(-1px);
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
}

.btn-icon:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-icon.btn-danger:hover {
    background: #fee;
    border-color: #fcc;
    color: #dc3545;
}

/* =====================================================
   BOŞ DURUM
===================================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #1a1a1a;
}

.empty-state p {
    margin: 0 0 24px 0;
    color: #666;
    font-size: 15px;
}

/* =====================================================
   KİTAPLAR GRID
===================================================== */
.kitaplar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* =====================================================
   KİTAP KARTI
===================================================== */
.kitap-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.kitap-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.kitap-card.inactive {
    opacity: 0.7;
}

.inactive-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.kitap-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.kitap-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.05) 100%);
}

.kitap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #cbd3da;
}

.kitap-content {
    padding: 24px;
}

.kitap-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.kitap-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    line-height: 1.4;
}

.kitap-yil {
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    flex-shrink: 0;
}

.kitap-aciklama {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.kitap-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid #f0f0f0;
    margin-bottom: 12px;
}

.kitap-fiyat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fiyat-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.fiyat-deger {
    font-size: 24px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kitap-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-satin-al {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--success-gradient);
    color: #1a4807;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.related-card {
    transition: all 0.4s cubic-bezier(.25,.8,.25,1);
}

.related-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 14px 40px rgba(0,0,0,0.12);
}


.btn-satin-al:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 255, 200, 0.4);
}

/* =====================================================
   SWITCH
===================================================== */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background: var(--primary-gradient);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* =====================================================
   MODAL - Tam Yenileme
===================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
}

.modal-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-header h2::before {
    content: '📚';
    font-size: 28px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
}

.modal-close:hover {
    background: #fee;
    border-color: #dc3545;
    color: #dc3545;
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1e9972 0%, #c2e3b5 100%);
    border-radius: 5px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1a8060 0%, #a8cc9c 100%);
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px 40px;
    border-top: 2px solid #f0f0f0;
    background: #fafbfc;
    flex-shrink: 0;
}

/* =====================================================
   FORM - 2 Sütunlu Düzen
===================================================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 700;
    font-size: 14px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 6px; 
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
    box-sizing: border-box;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #cbd3da;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e9972;
    box-shadow: 0 0 0 4px rgba(30, 153, 114, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.help-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: -4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-text::before {
    content: 'ℹ️';
    font-size: 13px;
}

/* =====================================================
   FILE INPUT - Modern Upload Area
===================================================== */
.file-upload-wrapper {
    position: relative;
	width: 100%;
}

.upload-zone {
    border: 3px dashed #cbd3da;
    border-radius: var(--radius-md);
    padding: 20px 20px;
    text-align: center;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-zone:hover {
    border-color: #1e9972;
    background: linear-gradient(135deg, #f4fff5 0%, #e8f5e9 100%);
    transform: translateY(-2px);
}

.upload-zone.has-file {
    border-style: solid;
    border-color: #1e9972;
    background: #f4fff5;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.upload-text {
    font-size: 15px;
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 13px;
    color: #6c757d;
}

.form-group input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    padding: 0;
}

/* =====================================================
   IMAGE PREVIEW
===================================================== */
.image-preview {
    margin-top: 20px;
    display: none;
}

.image-preview.active {
    display: block;
}

.preview-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f8f9fa;
    padding: 16px;
    border: 2px solid #e9ecef;
}

.preview-container img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
}

.preview-actions, .cropper-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.preview-actions button, .cropper-actions button {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 2px solid #e9ecef;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-actions button:hover, .cropper-actions button:hover {
    border-color: #1e9972;
    color: #1e9972;
}

.preview-actions .btn-remove {
    background: #fee;
    border-color: #fcc;
    color: #dc3545;
}
 
.preview-actions .btn-remove:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* =====================================================
   CHECKBOX - Modern Style
===================================================== */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f4fff5 0%, #e8f5e9 100%);
    border-radius: var(--radius-md);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    width: 100%;
}

.checkbox-label:hover {
    border-color: #1e9972;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #1e9972;
    margin: 0;
}

.checkbox-label span {
    font-weight: 600;
    color: #2d3748;
}

/* =====================================================
   RESPONSİVE
===================================================== */
@media (max-width: 768px) {
    .page-hero {
        padding: 32px 24px;
    }
    
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .kitaplar-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 24px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .kitap-actions {
        flex-wrap: wrap;
    }
    
    .kitap-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .form-grid {
        gap: 16px;
    }
}

.cropper-actions button i {
    margin-right: 6px;
}

.char-counter {
    text-align: left;
    font-size: 13px;
    color: #6c757d;
    margin-top: -20px;
}

.char-counter.warning {
    color: #f59e0b; /* sarı */
}

.char-counter.danger {
    color: #dc3545; /* kırmızı */
    font-weight: 600;
}

.kitap-detail-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.kitap-detail-image {
    flex: 0 0 45%;
    /*max-width: 45%;*/
}

.kitap-detail-image img {
    width: 100%;
	max-width:600px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
	margin:10px;
}

.kitap-detail-content {
    flex: 1;
}

.kitap-meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.kitap-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #495057;
}

.kitap-meta-item i {
    width: 18px;
    color: #1e9972;
}

@media (max-width: 768px) {
    .kitap-detail-card {
        flex-direction: column;
    }

    .kitap-detail-image,
    .kitap-detail-image img {
        max-width: 100%;
    }
}

.related-section {
    margin-top: 48px;
}

.related-section h3 {
    font-size: 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.related-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.related-card {
    flex: 0 0 160px;
    text-decoration: none;
    color: inherit;
}

.related-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.related-price {
    font-size: 14px;
    color: #1e9972;
    font-weight: 700;
}

.empty-state-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.empty-state-card {
    max-width: 520px;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.empty-state-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe4e6, #fff1f2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
}

.empty-state-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.empty-desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 8px;
}

.empty-note {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
}

.empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.empty-actions .btn-secondary {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
}

.empty-actions .btn-secondary:hover {
    background: #f9fafb;
    transform: translateY(-1px);
}

.empty-actions .btn-primary {
    background: linear-gradient(135deg, #1e9972 0%, #c2e3b5 100%);
    color: #0f3d2e;
    box-shadow: 0 6px 16px rgba(30,153,114,0.25);
}

.empty-actions .btn-primary:hover {
    transform: translateY(-2px);
}

.empty-state-positive .empty-state-icon.success {
    background: linear-gradient(135deg, #e6f9f0, #f0fdf4);
    color: #1e9972;
}

.empty-state-positive h2 {
    color: #1f2937;
}

.empty-state-positive .btn-primary {
    padding: 14px 26px;
    font-size: 15px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}



.btn-book-detail,
.btn-book-buy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-book-detail {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.btn-book-detail:hover {
    background: #e9ecef;
    border-color: #cbd3da;
    transform: translateY(-2px);
}

.btn-book-buy {
    background: var(--success-gradient);
    color: #1a4807;
    border: 2px solid transparent;
}

.btn-book-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(82, 255, 200, 0.4);
}


/* =====================================================
   İLGİLİ KİTAPLAR BÖLÜMÜ - Modern & Şık
===================================================== */

.related-section {
    margin: 60px 0;
    padding: 48px;
    background: linear-gradient(135deg, #fdfeff 0%, #f8fbfc 100%);
    border-radius: 24px;
    border: 1px solid rgba(30, 153, 114, 0.08);
    position: relative;
    overflow: visible;
}

.related-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 153, 114, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.related-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(194, 227, 181, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Farklı bölümler için ince ayarlar */
.related-section.author-books {
    background: linear-gradient(135deg, #fffbf5 0%, #fef8f1 100%);
    border-color: rgba(255, 147, 51, 0.08);
}

.related-section.author-books::before {
    background: radial-gradient(circle, rgba(255, 147, 51, 0.03) 0%, transparent 70%);
}

.related-section.similar-books {
    background: linear-gradient(135deg, #f5f9ff 0%, #f0f6ff 100%);
    border-color: rgba(82, 109, 255, 0.08);
}

.related-section.similar-books::before {
    background: radial-gradient(circle, rgba(82, 109, 255, 0.03) 0%, transparent 70%);
}

/* =====================================================
   SECTION HEADER - Şık Başlık
===================================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
}

.section-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e9972 0%, #c2e3b5 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(30, 153, 114, 0.2);
}

.author-books .section-icon {
    background: linear-gradient(135deg, #ff9333 0%, #ffb366 100%);
    box-shadow: 0 8px 20px rgba(255, 147, 51, 0.2);
}

.similar-books .section-icon {
    background: linear-gradient(135deg, #526dff 0%, #7a8fff 100%);
    box-shadow: 0 8px 20px rgba(82, 109, 255, 0.2);
}

.section-title-wrapper {
    flex: 1;
}

.section-title {
    margin: 0 0 6px 0;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.section-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* =====================================================
   CAROUSEL WRAPPER - Ok Butonları İçin Container
===================================================== */
.related-carousel-wrapper {
    position: relative;
    z-index: 2;
    padding: 0 70px; /* Daha fazla padding */
}

/* =====================================================
   CAROUSEL BUTTONS - Sağ/Sol Oklar (HER ZAMAN GÖRÜNÜR)
===================================================== */
.carousel-btn {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: #495057;
    outline: none;
    visibility: visible !important;
    opacity: 1 !important;
}

.carousel-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #1e9972 0%, #c2e3b5 100%);
    color: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(30, 153, 114, 0.35);
}

.carousel-btn:active:not(.disabled) {
    transform: translateY(-50%) scale(0.98);
}

.carousel-btn-prev {
    left: 5px;
}

.carousel-btn-next {
    right: 5px;
}

.author-books .carousel-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #ff9333 0%, #ffb366 100%);
    box-shadow: 0 8px 24px rgba(255, 147, 51, 0.35);
}

.similar-books .carousel-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #526dff 0%, #7a8fff 100%);
    box-shadow: 0 8px 24px rgba(82, 109, 255, 0.35);
}

/* Disabled state - sadece görünümü değiştir, gizleme */
.carousel-btn.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* =====================================================
   SCROLL WRAPPER - Kaydırma Alanı
===================================================== */
.related-scroll-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* ÖNEMLİ: İçeriğin taşmasına izin ver */
    width: 100%;
}

.related-scroll-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* =====================================================
   RELATED ROW - Kitap Kartları Sırası
===================================================== */
.related-row {
    display: flex;
    gap: 24px;
    /* ÖNEMLİ: Flex wrap KAPALI olmalı */
    flex-wrap: nowrap;
    /* İçeriği sığdırmaya çalışma */
    width: max-content;
}

/* =====================================================
   RELATED CARD - Kitap Kartı
===================================================== */
.related-card {
    flex: 0 0 220px; /* Sabit genişlik */
    min-width: 220px; /* Minimum genişlik */
    max-width: 220px; /* Maximum genişlik */
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.related-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.08);
}

.related-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd3da;
}

.related-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.3) 50%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-card:hover .related-card-overlay {
    opacity: 1;
}

.related-card-overlay svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Card Content */
.related-card-content {
    padding: 16px;
}

.related-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.related-card:hover .related-title {
    color: #1e9972;
}

.related-year {
    display: inline-block;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .related-section {
        padding: 36px 28px;
    }
    
    .section-header {
        gap: 16px;
    }
    
    .section-icon {
        width: 48px;
        height: 48px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .related-carousel-wrapper {
        padding: 0 56px;
    }
    
    .carousel-btn {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .related-section {
        padding: 28px 20px;
        margin: 40px 0;
        border-radius: 20px;
    }
    
    .section-header {
        flex-direction: row;
        align-items: center;
    }
    
    .section-icon {
        width: 44px;
        height: 44px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .related-carousel-wrapper {
        padding: 0 52px;
    }
    
    .related-card {
        flex: 0 0 180px;
    }
    
    .related-card-image {
        height: 240px;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .related-section {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .section-header {
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .related-carousel-wrapper {
        padding: 0 48px;
    }
    
    .related-card {
        flex: 0 0 160px;
    }
    
    .related-card-image {
        height: 220px;
    }
    
    .related-row {
        gap: 16px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* =====================================================
   ANIMASYONLAR
===================================================== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.related-card {
    animation: slideInRight 0.5s ease-out backwards;
}

.related-card:nth-child(1) { animation-delay: 0.05s; }
.related-card:nth-child(2) { animation-delay: 0.1s; }
.related-card:nth-child(3) { animation-delay: 0.15s; }
.related-card:nth-child(4) { animation-delay: 0.2s; }
.related-card:nth-child(5) { animation-delay: 0.25s; }
.related-card:nth-child(6) { animation-delay: 0.3s; }


/* =====================================================
   RESPONSIVE - RELATED SECTIONS
===================================================== */
@media (max-width: 1024px) {
    .related-carousel-wrapper {
        padding: 0 56px;
        margin: 0 -16px;
    }
    
    .related-scroll-wrapper {
        padding: 4px 16px;
    }
}

@media (max-width: 768px) {
    .related-carousel-wrapper {
        padding: 0 52px;
        margin: 0 -12px;
    }
    
    .related-scroll-wrapper {
        padding: 4px 12px;
    }
    
    .related-card {
        flex: 0 0 180px;
    }
}

@media (max-width: 480px) {
    .related-carousel-wrapper {
        padding: 0 48px;
        margin: 0 -8px;
    }
    
    .related-scroll-wrapper {
        padding: 4px 8px;
    }
    
    .related-card {
        flex: 0 0 160px;
    }
    
    .related-row {
        gap: 16px;
    }
}




