/* =============================================
   KİTAPLARIM.CSS - Ebru Ekşioğlu Kitaplarım Sayfası
   index.css ile tam uyumlu, modern ve responsive tasarım
   ============================================= */

:root {
    /* Ana renkler index.css'den alınır, burada tanımlamaya gerek yok */
    --book-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --book-card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    --book-badge-bg: linear-gradient(135deg, var(--secondary-color), #e6c158);
    --book-badge-text: var(--primary-dark);
    --book-publisher-color: #666;
    --book-location-color: #888;
}

/* =============================================
   KİTAPLARIM HERO SECTION
   ============================================= */

.books-hero {
    background: linear-gradient(rgba(12, 30, 62, 0.85), rgba(12, 30, 62, 0.9)), 
                url('https://images.unsplash.com/photo-1495446815901-a7297e633e8d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 180px 0 100px;
    margin-top: 100px;
    text-align: center;
    position: relative;
}

.books-hero:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, white);
}

.books-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.books-hero-subtitle {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.books-hero-title {
    font-size: 3.8rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.books-hero-divider {
    margin-bottom: 30px;
    position: relative;
}

.books-hero-divider i {
    font-size: 2rem;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.books-hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
    font-weight: 400;
}

/* =============================================
   KİTAP LİSTESİ SECTION
   ============================================= */

.books-list-section {
    padding: 80px 0;
    background-color: #fff;
}

/* Filtreleme / Sıralama Barı */
.books-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 25px;
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.books-count {
    font-size: 1rem;
    color: #666;
}

.books-count strong {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.books-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.books-sort label {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.books-sort-select {
    padding: 12px 30px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s;
}

.books-sort-select:hover,
.books-sort-select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Kitap Grid - Modern Card Tasarımı */
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Kitap Kartı */
.book-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--book-card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--book-card-hover-shadow);
    border-color: rgba(212, 175, 55, 0.2);
}

.book-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Kitap Görsel Alanı */
.book-image-container {
    position: relative;
    overflow: hidden;
    padding-top: 130%; /* 4:5 oranı - kitap görseli için ideal */
    background: linear-gradient(135deg, #f5f7fa, #e9ecef);
}

.book-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.book-card:hover .book-image {
    transform: scale(1.08);
}

/* Kitap Rozetleri (Çok Satan, Yeni, 3. Baskı vb.) */
.book-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--book-badge-bg);
    color: var(--book-badge-text);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    z-index: 2;
    border: none;
}

/* Kitap Detay Alanı */
.book-details {
    padding: 25px 20px;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card:hover .book-title {
    color: var(--secondary-color);
}

.book-publisher,
.book-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--book-publisher-color);
}

.book-location {
    color: var(--book-location-color);
    margin-bottom: 15px;
}

.book-publisher i,
.book-location i {
    color: var(--secondary-color);
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

.book-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Kitap Aksiyon Butonları */
.book-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.btn-purchase {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.btn-purchase:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.2);
    color: white;
    border-color: var(--secondary-color);
}

.btn-purchase i {
    font-size: 1.1rem;
}

.btn-details {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.btn-details:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* =============================================
   SAYFALAMA (PAGINATION)
   ============================================= */

.books-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-page,
.pagination-arrow {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s;
    background: white;
    border: 1px solid #eee;
}

.pagination-page {
    padding: 0 5px;
}

.pagination-page:hover,
.pagination-arrow:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.2);
}

.pagination-page.active {
    background: linear-gradient(135deg, var(--secondary-color), #e6c158);
    color: var(--primary-dark);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.pagination-arrow.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f5f5f5;
}

.pagination-dots {
    color: #666;
    font-weight: 600;
    margin: 0 5px;
}

/* =============================================
   YAZARIN MESAJI
   ============================================= */

.author-message-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(139, 69, 19, 0.05));
}

.author-message-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 50px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.author-message-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.author-message-icon {
    margin-bottom: 25px;
}

.author-message-icon i {
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.6;
}

.author-message-text {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    margin-bottom: 25px;
    quotes: "“" "”" "‘" "’";
}

.author-message-signature {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.author-message-signature:before {
    content: "— ";
}

/* =============================================
   SATIN ALMA PLATFORMLARI
   ============================================= */

.purchase-platforms-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.platforms-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px 35px;
    background: var(--light-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid transparent;
    min-width: 150px;
}

.platform-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    transition: all 0.3s;
}

.platform-item:hover {
    background: white;
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15);
}

.platform-item:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* =============================================
   MODAL TASARIMI (Kitap Detay)
   ============================================= */

.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-bottom: none;
    padding: 20px 30px;
}

.modal-header .modal-title {
    color: white;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.3rem;
}

.modal-header .btn-close {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3E%3C/svg%3E") center/1em auto no-repeat;
    opacity: 0.8;
}

.modal-body {
    padding: 30px;
}

.modal-book-details {
    display: flex;
    gap: 30px;
}

.modal-book-image {
    flex: 0 0 150px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-book-info {
    flex: 1;
}

.modal-book-info h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.modal-book-info p {
    margin-bottom: 10px;
    color: #555;
}

.modal-book-info p strong {
    color: var(--primary-dark);
    min-width: 120px;
    display: inline-block;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 20px 30px;
}

.btn-purchase-modal {
    background: linear-gradient(135deg, var(--secondary-color), #e6c158);
    color: var(--primary-dark);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-purchase-modal:hover {
    background: linear-gradient(135deg, #e6c158, #f1d98d);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    color: var(--primary-dark);
}

.modal-footer .btn-secondary {
    background: var(--light-color);
    color: var(--text-color);
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
}

/* =============================================
   RESPONSIVE TASARIM
   ============================================= */

/* 4 kolon - Büyük ekran */
@media (max-width: 1400px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 3 kolon - Orta ekran */
@media (max-width: 1200px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .books-hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* 2 kolon - Tablet */
@media (max-width: 992px) {
    .books-hero {
        padding: 150px 0 80px;
        margin-top: 80px;
    }
    
    .books-hero-title {
        font-size: 2.8rem;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .books-filter-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .books-sort {
        width: 100%;
    }
    
    .books-sort-select {
        width: 100%;
    }
    
    .author-message-card {
        padding: 40px 30px;
    }
    
    .author-message-text {
        font-size: 1.3rem;
    }
    
    .modal-book-details {
        flex-direction: column;
    }
    
    .modal-book-image {
        flex: 0 0 auto;
        width: 120px;
        height: 160px;
        margin: 0 auto;
    }
}

/* 1 kolon - Mobil */
@media (max-width: 768px) {
    .books-hero-title {
        font-size: 2.2rem;
    }
    
    .books-hero-description {
        font-size: 1rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .book-card {
        max-width: 350px;
        margin: 0 auto;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .platforms-grid {
        gap: 15px;
    }
    
    .platform-item {
        min-width: calc(50% - 15px);
        padding: 20px;
    }
    
    .author-message-card {
        padding: 30px 20px;
    }
    
    .author-message-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .books-hero {
        padding: 120px 0 60px;
        margin-top: 70px;
    }
    
    .books-hero-title {
        font-size: 1.8rem;
    }
    
    .books-hero-subtitle {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .books-hero-divider i {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }
    
    .books-list-section {
        padding: 50px 0;
    }
    
    .book-title {
        font-size: 1.1rem;
    }
    
    .btn-purchase {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .btn-details {
        width: 45px;
        height: 45px;
    }
    
    .books-pagination {
        flex-wrap: wrap;
    }
    
    .pagination-page,
    .pagination-arrow {
        min-width: 40px;
        height: 40px;
    }
    
    .platform-item {
        min-width: 100%;
    }
    
    .platform-item i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .books-hero-title {
        font-size: 1.6rem;
    }
    
    .books-hero-description {
        font-size: 0.95rem;
    }
    
    .book-card {
        max-width: 300px;
    }
    
    .book-actions {
        flex-wrap: wrap;
    }
    
    .btn-purchase {
        width: 100%;
    }
    
    .btn-details {
        width: 100%;
        border-radius: 50px;
    }
    
    .author-message-text {
        font-size: 1rem;
    }
    
    .author-message-signature {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

/* =============================================
   ANİMASYONLAR
   ============================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-card {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.book-card:nth-child(1) { animation-delay: 0.1s; }
.book-card:nth-child(2) { animation-delay: 0.2s; }
.book-card:nth-child(3) { animation-delay: 0.3s; }
.book-card:nth-child(4) { animation-delay: 0.4s; }
.book-card:nth-child(5) { animation-delay: 0.5s; }
.book-card:nth-child(6) { animation-delay: 0.6s; }
.book-card:nth-child(7) { animation-delay: 0.7s; }
.book-card:nth-child(8) { animation-delay: 0.8s; }

/* =============================================
   YARDIMCI SINIFLAR
   ============================================= */

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--secondary-color), #e6c158);
}

/* Responsive font size helper */
@media (max-width: 576px) {
    .books-hero-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    
    .section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
}