/* ============================================ */
/* RESPONSIVE MEDIA QUERIES - EKSİK CSS DÜZELTMESİ */
/* ============================================ */

/* Ana CSS kodunuza EKLENECEK medya sorguları */

/* ============================================ */
/* 1. EXTRA LARGE DEVICES (1400px ve üzeri) */
/* ============================================ */
@media (min-width: 1400px) {
    .hero-section h1 {
        font-size: 4rem;
        letter-spacing: 3px;
    }
    
    .book-covers-container {
        margin-top: 100px;
    }
    
    .book-cover-hero {
        width: 200px;
        height: auto;
    }
    
    .author-section h2 {
        font-size: 3rem;
    }
    
    .author-image img {
        width: 350px;
        height: 350px;
    }
    
    .testimonial-section h2,
    .contact-section h2 {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1320px;
    }
}

/* ============================================ */
/* 2. LARGE DEVICES (1200px - 1399px) */
/* ============================================ */
@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-section h1 {
        font-size: 3.5rem;
        letter-spacing: 2.5px;
    }
    
    .book-cover-hero {
        width: 170px;
        height: auto;
    }
    
    .author-image img {
        width: 320px;
        height: 320px;
    }
    
    .testimonial-card {
        height: 320px;
    }
}

/* ============================================ */
/* 3. MEDIUM DEVICES (992px - 1199px) */
/* ============================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-section {
        padding: 90px 0;
    }
    
    .hero-section h1 {
        font-size: 3rem;
        letter-spacing: 2px;
        margin-bottom: 25px;
    }
    
    .book-covers-container {
        margin-top: 70px;
    }
    
    .book-cover-hero {
        width: 160px;
        height: auto;
    }
    
    .book-item-box {
        padding-top: 170px;
    }
    
    .book-item-box .book-cover-hero {
        width: 140px;
        top: -65px;
    }
    
    .book-title-hero {
        font-size: 1.2rem;
    }
    
    .book-description-hero {
        font-size: 0.9rem;
        height: 85px;
    }
    
    .author-content {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .author-image img {
        width: 280px;
        height: 280px;
    }
    
    .author-info h3 {
        font-size: 1.8rem;
    }
    
    .author-info p {
        font-size: 1.2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-right: 0;
    }
    
    .testimonial-card {
        height: 280px;
        padding: 25px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 5px 12px !important;
        font-size: 0.9rem;
    }
}

/* ============================================ */
/* 4. SMALL DEVICES (768px - 991px) */
/* ============================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        letter-spacing: 1.8px;
        margin-bottom: 20px;
    }
    
    .book-covers-container {
        margin-top: 60px;
    }
    
    .book-cover-hero {
        width: 140px;
        height: 140px;
        margin: 0 auto 15px;
    }
    
    .book-item-box {
        padding-top: 160px;
        margin-bottom: 30px;
    }
    
    .book-item-box .book-cover-hero {
        width: 130px;
        top: -60px;
    }
    
    .book-title-hero {
        font-size: 1.15rem;
    }
    
    .book-description-hero {
        font-size: 0.85rem;
        height: 80px;
    }
    
    .buy-button {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .author-section {
        padding: 70px 0;
    }
    
    .author-section h2 {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
    
    .author-content {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .author-image img {
        width: 240px;
        height: 240px;
    }
    
    .author-info h3 {
        font-size: 1.6rem;
    }
    
    .author-info p {
        font-size: 1.1rem;
    }
    
    .testimonial-section {
        padding: 70px 0;
    }
    
    .testimonial-section h2 {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
    
    .testimonial-card {
        height: 260px;
        padding: 20px;
    }
    
    .contact-section {
        padding: 70px 0;
    }
    
    .contact-section h2 {
        font-size: 2.2rem;
    }
    
    .footer-section {
        padding: 50px 0 25px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 4px 10px !important;
    }
}

/* ============================================ */
/* 5. EXTRA SMALL DEVICES (576px - 767px) */
/* ============================================ */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        padding: 100px 0 30px;
        overflow: hidden;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
        margin-bottom: 20px;
    }
    
    .book-covers-container {
        margin-top: 50px;
    }
    
    .book-cover-hero {
        width: 130px;
        height: 130px;
        margin: 0 auto 12px;
    }
    
    .book-item-box {
        padding-top: 150px;
        margin-bottom: 25px;
    }
    
    .book-item-box .book-cover-hero {
        width: 120px;
        top: -55px;
    }
    
    .book-title-hero {
        font-size: 1.1rem;
    }
    
    .book-description-hero {
        font-size: 0.8rem;
        height: 75px;
    }
    
    .buy-button {
        padding: 7px 16px;
        font-size: 0.8rem;
    }
    
    .author-section {
        padding: 60px 0;
    }
    
    .author-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .author-image img {
        width: 200px;
        height: 200px;
    }
    
    .author-info h3 {
        font-size: 1.5rem;
    }
    
    .author-info p {
        font-size: 1rem;
    }
    
    .testimonial-section {
        padding: 60px 0;
    }
    
    .testimonial-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .testimonial-card {
        height: 240px;
        padding: 18px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .footer-section {
        padding: 40px 0 20px;
    }
    
    .footer-logo {
        font-size: 1.6rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* ============================================ */
/* 6. VERY SMALL DEVICES (480px - 575px) */
/* ============================================ */
@media (min-width: 480px) and (max-width: 575px) {
    .hero-section {
        padding: 90px 0 25px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        letter-spacing: 1.2px;
        margin-bottom: 18px;
    }
    
    .book-item-box {
        padding-top: 140px;
        margin-bottom: 20px;
    }
    
    .book-item-box .book-cover-hero {
        width: 110px;
        top: -50px;
    }
    
    .book-title-hero {
        font-size: 1rem;
    }
    
    .book-description-hero {
        font-size: 0.75rem;
        height: 70px;
    }
    
    .author-image img {
        width: 180px;
        height: 180px;
    }
    
    .author-info h3 {
        font-size: 1.4rem;
    }
    
    .author-info p {
        font-size: 0.95rem;
    }
    
    .testimonial-card {
        height: 220px;
        padding: 15px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 3px 8px !important;
    }
}

/* ============================================ */
/* 7. MOBILE DEVICES (320px - 479px) */
/* ============================================ */
@media (max-width: 479px) {
    .hero-section {
        padding: 80px 0 20px;
        overflow: hidden;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .book-covers-container {
        margin-top: 40px;
        padding: 20px 0;
    }
    
    .book-cover-hero {
        width: 120px;
        height: 120px;
        margin: 0 auto 10px;
    }
    
    .book-item-box {
        padding: 130px 10px 15px;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .book-item-box .book-cover-hero {
        width: 100px;
        top: -45px;
    }
    
    .book-title-hero {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .book-description-hero {
        font-size: 0.7rem;
        height: 65px;
        line-height: 1.4;
    }
    
    .read-more-link {
        font-size: 0.75rem;
        margin-bottom: 15px;
    }
    
    .buy-button {
        padding: 6px 14px;
        font-size: 0.75rem;
        border-radius: 20px;
    }
    
    .author-section {
        padding: 50px 0;
    }
    
    .author-section h2 {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }
    
    .author-content {
        padding: 20px;
        border-radius: 15px;
    }
    
    .author-image img {
        width: 160px;
        height: 160px;
    }
    
    .author-info h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .author-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .testimonial-section {
        padding: 50px 0;
    }
    
    .testimonial-section h2 {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }
    
    .testimonial-card {
        height: 200px;
        padding: 12px;
        margin: 15px auto;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .testimonial-rating {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .testimonial-author {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .contact-form {
        padding: 25px;
        border-radius: 15px;
    }
    
    .form-control {
        padding: 10px 15px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .form-label {
        font-size: 1rem;
    }
    
    .footer-section {
        padding: 35px 0 15px;
    }
    
    .footer-logo {
        font-size: 1.4rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-link {
        font-size: 1rem;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .footer-social a {
        font-size: 1.3rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .navbar {
        padding: 8px 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .navbar-brand img {
        height: 45px;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 2px 6px !important;
        margin: 0 1px;
    }
    
    .navbar-toggler {
        padding: 2px 4px;
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control-prev {
        left: -15px;
    }
    
    .carousel-control-next {
        right: -15px;
    }
}

/* ============================================ */
/* 8. LANDSCAPE ORIENTATION (Yatay Telefon) */
/* ============================================ */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0 15px;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .book-covers-container {
        margin-top: 30px;
    }
    
    .book-item-box {
        padding-top: 120px;
    }
    
    .book-item-box .book-cover-hero {
        width: 90px;
        top: -40px;
    }
    
    .author-section,
    .testimonial-section,
    .contact-section {
        padding: 40px 0;
    }
    
    .testimonial-card {
        height: 180px;
    }
}

/* ============================================ */
/* 9. PRINT STYLES */
/* ============================================ */
@media print {
    .navbar,
    .footer-section,
    .floating-particles,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
    
    .hero-section,
    .author-section,
    .testimonial-section,
    .contact-section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .hero-section h1 {
        color: #000 !important;
        font-size: 2rem;
    }
    
    .book-title-hero,
    .author-info h3,
    .testimonial-author {
        color: #000 !important;
    }
    
    .book-description-hero,
    .author-info p,
    .testimonial-text {
        color: #333 !important;
    }
    
    .buy-button {
        display: none;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ============================================ */
/* 10. HIGH DPI / RETINA DISPLAYS */
/* ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .book-cover-hero,
    .author-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .hero-section h1 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ============================================ */
/* 11. REDUCED MOTION PREFERENCES */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-particles {
        display: none;
    }
    
    .particle {
        animation: none;
    }
}

/* ============================================ */
/* 12. DARK MODE PREFERENCE */
/* ============================================ */
@media (prefers-color-scheme: dark) {
    [data-bs-theme="auto"] {
        --primary-color: #c4c4c5;
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --card-bg: #2d2d2d;
        --navbar-bg: rgba(45, 45, 45, 0.9);
    }
}

/* ============================================ */
/* 13. CONTAINER QUERIES (Modern Browsers) */
/* ============================================ */
@container (max-width: 500px) {
    .book-item-box {
        padding-top: 120px;
    }
    
    .book-title-hero {
        font-size: 0.9rem;
    }
}

/* SweetAlert Animasyonları */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.fadeInDown {
    animation-name: fadeInDown;
}

/* SweetAlert Özelleştirmeleri */
.swal2-popup {
    border-radius: 15px !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.1) !important;
}

.swal2-title {
    font-size: 1.5em !important;
    color: #333 !important;
}

.swal2-html-container {
    font-size: 1.1em !important;
    color: #666 !important;
}

.swal2-confirm {
    padding: 12px 30px !important;
    font-size: 1.1em !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 600 !important;
}

.swal2-success-ring {
    border-color: #686d69 !important;
}

.swal2-icon.swal2-success {
    border-color: #afafb0 !important;
    color: #afafb0 !important;
}

.swal2-icon.swal2-error {
    border-color: #636363 !important;
    color: #636363 !important;
}