/* =============================================== */
/* PERSONALIZATION.CSS - SADE VE ÇALIŞAN VERSİYON */
/* =============================================== */

.personalization-section {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #1a3a1e 0%, #2c5530 100%);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

.personalization-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;  /* ← BURAYI EKLEDİK! Sağ ve soldan içeri boşluk */
}

/* ===== HOŞ GELDİN ===== */
.welcome-section {
    margin-bottom: 1.5rem;
}

.welcome-section h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.welcome-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin: 0;
}

/* ===== İSTATİSTİK KARTLARI ===== */
.stats-cards {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffd966;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

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

/* ===== KİTAP BAŞLIĞI ===== */
.books-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 1rem;
}

.books-header h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.books-header h3 i {
    color: #ffd966;
}

.view-all-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link:hover {
    background: rgba(255,255,255,0.2);
}

/* ===== KİTAP CAROUSEL ===== */
.books-carousel {
    position: relative;
    margin: 1rem 0 0.5rem;
}

.carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) rgba(255,255,255,0.1);
}

.carousel-container::-webkit-scrollbar {
    height: 6px;
}

.carousel-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    gap: 1rem;
}

/* Kitap Kartı */
.book-card-carousel {
    flex: 0 0 150px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.book-card-carousel:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.book-cover-carousel {
    aspect-ratio: 3/4;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #1a3a1e 0%, #2c5530 100%);
}

.book-cover-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-placeholder-carousel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 2rem;
}

.book-info-carousel {
    padding: 0.8rem;
    background: white;
}

.book-title-carousel {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    max-height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-progress-carousel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.progress-bar-carousel {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill-carousel {
    height: 100%;
    background: #ffd966;
    border-radius: 2px;
}

.progress-text-carousel {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
    min-width: 35px;
    text-align: right;
}

/* Boş Durum */
.empty-state-carousel {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin: 1rem 0;
}

.empty-icon-carousel {
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 1rem;
}

.empty-state-carousel h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state-carousel p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.empty-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-btn.primary {
    background: #ffd966;
    color: #1a3a1e;
}

.empty-btn.primary:hover {
    background: #ffe083;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.empty-btn.secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.empty-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Yükleme */
.loading-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    color: rgba(255,255,255,0.7);
}

.spinner-carousel {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #ffd966;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .stats-cards {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .book-card-carousel {
        flex: 0 0 130px;
    }
    
    .empty-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .empty-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .welcome-section h2 {
        font-size: 1.6rem;
    }
    
    .book-card-carousel {
        flex: 0 0 110px;
    }
    
    .book-title-carousel {
        font-size: 0.8rem;
    }
}


.reminder-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.2);
}

.reminder-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.reminder-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reminder-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.reminder-button {
    background: white;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.reminder-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}