/* ============================================
   COMPREHENSIVE MOBILE & WEB RESPONSIVE CSS
   ============================================ */

/* ===== GLOBAL MOBILE FIXES ===== */
@media (max-width: 768px) {

    /* === OTHER PAGE HEROES (Compact Defaults) === */
    section[style*="height:400px"],
    section[style*="height:350px"] {
        height: 250px !important;
        /* Compact defaults */
        min-height: 250px !important;
        padding-top: 60px !important;
    }

    /* === EXPANDED HEROES (Services, Contact, Campaigns) === */
    #services-hero,
    #contact-hero,
    #campaigns-hero {
        height: 60vh !important;
        /* Expanded */
        min-height: 500px !important;
    }

    /* Remove body padding since Nav is gone */
    body {
        padding-bottom: 0 !important;
    }

    /* === HOMEPAGE HERO (Expanded) === */
    .hero-slider {
        height: 85vh !important;
        /* Expanded downwards */
        max-height: 900px !important;
        min-height: 600px !important;
        padding: 100px 15px 40px 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* === CONTACT PAGE MOBILE === */
    #contact-map-card {
        height: 400px !important;
        min-height: 400px !important;
        border-radius: 20px !important;
        /* Ensure rounded corners like other cards */
    }

    .contact-grid {
        display: flex !important;
        flex-direction: column;
        gap: 30px;
    }

    .hero-slider .container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        height: 100% !important;
    }

    .explosive-text,
    h1.explosive-text {
        font-size: 2.5rem !important;
        margin: 10px 0 !important;
    }

    .hero-slider p {
        font-size: 0.9rem !important;
        margin-bottom: 25px !important;
        max-width: 90% !important;
    }

    /* Compact Buttons in Hero */
    .hero-slider .btn-brand {
        padding: 12px 25px !important;
        font-size: 0.85rem !important;
    }

    /* === CAMPAIGN BADGE FIX === */
    /* === CAMPAIGN BADGE FIX === */
    .campaign-card .discount-badge {
        position: absolute !important;
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        margin: 0 !important;
        z-index: 10 !important;
    }

    /* Reduce top padding on mobile since badge is in flow */
    .campaign-card div[style*="padding-top:55px"] {
        padding-top: 30px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* === GRIDS === */
    /* All grid layouts to single column */
    div[style*="grid-template-columns: repeat(auto-fit"],
    div[style*="grid-template-columns: repeat(auto-fill"],
    div[style*="grid-template-columns:repeat(auto-fit"],
    div[style*="grid-template-columns:repeat(auto-fill"],
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Fix Layout Issues */
    .hook-card,
    .campaign-card {
        margin-bottom: 20px;
    }

    /* Footer Mobile Alignment */
    footer {
        text-align: left !important;
    }

    footer .container {
        padding: 0 20px;
    }

    footer h4,
    footer p,
    footer li,
    footer a {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }

    footer .f-box-v4 {
        align-items: flex-start !important;
        text-align: left !important;
    }

    footer div[style*="display:flex"] {
        justify-content: flex-start !important;
    }

    /* Ensure Reviews Section Is Visible & Scrollable */
    #google-reviews,
    section#google-reviews {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* === CARDS === */
    .hook-card,
    .service-card,
    .campaign-card,
    div[class*="card"] {
        margin-bottom: 20px !important;
    }

    /* Card padding adjustments */
    div[style*="padding:50px"],
    div[style*="padding:40px"] {
        padding: 30px 20px !important;
    }

    div[style*="padding:35px 30px"] {
        padding: 25px 20px !important;
    }

    /* === VIP CARDS === */
    div[style*="padding:40px 30px"] {
        padding: 35px 25px !important;
    }

    h3[style*="font-size:1.8rem"] {
        font-size: 1.4rem !important;
    }

    div[style*="width:80px; height:80px"] {
        width: 70px !important;
        height: 70px !important;
        font-size: 2rem !important;
    }

    /* === IMAGES === */
    img[style*="height:280px"],
    img[style*="height:250px"] {
        height: 220px !important;
    }

    /* === BUTTONS === */
    .btn-brand,
    button[type="submit"],
    a[class*="btn"] {
        font-size: 0.95rem !important;
        padding: 16px 24px !important;
    }

    /* === FOOTER AGGRESSIVE LEFT ALIGN === */
    footer,
    footer .container,
    footer .f-box-v4,
    footer .copyright-row,
    footer div,
    footer p,
    footer a,
    footer li,
    footer h4,
    footer span {
        text-align: left !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Ensure icons align with text */
    footer .f-box-v4 div[style*="display:flex"] {
        justify-content: flex-start !important;
    }

    /* === NAVIGATION === */
    .nav-links {
        display: none !important;
    }

    /* === SIMPLE MOBILE MENU (Reverted) === */
    /* === COMPACT MOBILE MENU (Fixed) === */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        /* Plain white, as requested "normal" */
        z-index: 10001;
        display: none !important;
        flex-direction: column;
        justify-content: center;
        /* Center content vertically */
        align-items: center;
        text-align: center;
        padding: 20px;
        /* Minimal padding */
    }

    .mobile-menu.active {
        display: flex !important;
    }

    /* Standard Close Button */
    .close-btn {
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 3rem;
        /* Large and clear */
        color: #000;
        cursor: pointer;
        line-height: 1;
        z-index: 10002;
    }

    /* Menu Links - COMPACT */
    .mobile-menu a {
        font-family: var(--font-heading);
        font-size: 1.4rem;
        color: #000;
        margin: 0;
        padding: 8px 0;
        /* Very tight padding */
        width: 100%;
        border-bottom: none;
        /* Removed borders */
        text-decoration: none;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
    }

    .mobile-menu a:hover {
        color: var(--gold-main);
        background: transparent;
        padding-left: 0;
    }

    /* Special Randevu Button in Menu */
    .mobile-menu a.btn-brand {
        background: #000 !important;
        color: var(--gold-main) !important;
        border: 1px solid var(--gold-main) !important;
        border-radius: 5px !important;
        /* Standard button look */
        padding: 12px 30px !important;
        margin-top: 15px;
        /* Minimal gap */
        width: auto !important;
        display: inline-block !important;
        font-size: 1.1rem !important;
        box-shadow: none;
    }

    /* Remove Backdrop Styles */
    .menu-backdrop {
        display: none !important;
    }

    /* Correct Class Name for Toggle */
    .menu-toggle,
    .mobile-menu-toggle {
        display: block !important;
        cursor: pointer !important;
        z-index: 1002 !important;
        /* Above header background */
    }

    /* === PRICING === */
    div[style*="font-size:3rem"] {
        font-size: 2.2rem !important;
    }

    div[style*="font-size:2.2rem"] {
        font-size: 1.8rem !important;
    }

    /* === STATS/COUNT SECTIONS === */
    div[style*="flex-wrap:wrap"] {
        flex-direction: column !important;
        align-items: center !important;
    }

    /* === FORMS === */
    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevent iOS zoom */
        padding: 16px !important;
    }

    form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* === SPACING === */
    .heading-spacing {
        margin-bottom: 30px !important;
    }

    /* === REVIEWS === */
    #reviewsContainer {
        grid-template-columns: 1fr !important;
    }

    /* === WHY CHOOSE US SECTION === */
    section[style*="background:linear-gradient(135deg, #1a1a1a"] div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* === SLIDER === */
    .hero-slide {
        background-position: center !important;
    }

    /* === TABLES === */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* === SANAL TUR CARDS MOBILE === */
    .atmosphere-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* === CONTACT PAGE === */
    iframe[style*="width:100%"] {
        height: 300px !important;
    }

    /* === BOTTOM NAV === */
    .bottom-nav {
        display: flex !important;
    }
}

/* === FINAL OVERRIDES FOR USER REQUESTS === */

/* 1. Un-stick Bottom Nav (Alta doğru insin) */
@media (max-width: 768px) {
    .bottom-nav {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        background: #fff !important;
        backdrop-filter: none !important;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05) !important;
        margin-top: 20px !important;
        padding-bottom: 20px !important;
        z-index: 10 !important;
    }

    /* 2. Force Reviews Visibility & White Style */
    #google-reviews,
    section#google-reviews {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        min-height: 200px !important;
        background: #fff !important;
        /* Force White Section */
    }

    /* Make Review Cards White/Clean on Mobile */
    /* Force white clean reviews */
    .diamond-review {
        background: #fff !important;
        border: 1px solid #eee !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
        color: #000 !important;
        margin: 10px 0 !important;
        /* Vertical spacing */
        width: 100% !important;
        /* Full width */
        min-width: 0 !important;
        /* Prevent flex overflow */
    }

    .diamond-review p {
        color: #555 !important;
        white-space: normal !important;
        /* Ensure wrapping */
    }

    .diamond-review div {
        color: #000 !important;
    }

    /* Stop Slider Animation on Mobile and Stack */
    .review-track {
        display: flex !important;
        flex-direction: column !important;
        animation: none !important;
        width: 100% !important;
        transform: none !important;
    }

    /* Only show first 3 reviews on mobile */
    .diamond-review:nth-child(n+4) {
        display: none !important;
    }
}

/* ===== TABLET (768px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {

    h1.explosive-text,
    h1[style*="font-size:4rem"] {
        font-size: 3rem !important;
    }

    h2[style*="font-size:3.5rem"] {
        font-size: 2.8rem !important;
    }

    .container {
        max-width: 900px !important;
    }

    div[style*="grid-template-columns: repeat(auto-fit, minmax(360px"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===== DESKTOP ENHANCEMENTS ===== */
@media (min-width: 1025px) {

    /* Hide mobile-only elements */
    .mobile-only,
    .bottom-nav {
        display: none !important;
    }

    /* Container max width */
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Smooth hover transitions */
    .hook-card,
    .service-card,
    .campaign-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 896px) and (orientation: landscape) {

    section[style*="height:400px"],
    section[style*="height:350px"],
    .hero-slider {
        min-height: 280px !important;
        padding: 60px 20px 40px 20px !important;
    }

    h1.explosive-text {
        font-size: 1.8rem !important;
    }
}

/* ===== EXTRA SMALL SCREENS (< 375px) ===== */
@media (max-width: 374px) {

    h1.explosive-text {
        font-size: 1.8rem !important;
    }

    h2[style*="font-size"] {
        font-size: 1.6rem !important;
    }

    .btn-brand,
    button[type="submit"] {
        font-size: 0.85rem !important;
        padding: 14px 20px !important;
    }

    div[style*="padding:35px 25px"],
    div[style*="padding:30px 20px"] {
        padding: 20px 15px !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .bottom-nav,
    .mobile-menu-toggle,
    header,
    footer {
        display: none !important;
    }
}