/* ==========================================================================
   AlanyaJobs Premium - Responsive Layout Breakpoints
   ========================================================================== */

/* Large screens and Desktops (up to 1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
    
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .talents-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets and Landscape Viewports (up to 992px) */
@media (max-width: 992px) {
    /* Base */
    h1 { font-size: 40px !important; }
    h2 { font-size: 32px !important; }
    
    /* Header action button overrides */
    .btn-register-header-orange,
    .btn-login-whatsapp-green {
        display: none !important;
    }
    .brand-logo-img {
        height: 50px !important;
        max-height: 50px !important;
    }
    .elektra-logo {
        height: auto !important;
        text-decoration: none !important;
    }
    
    /* Topbar */
    .top-info-bar {
        display: none !important; /* Hide topbar on smaller tablets for layout spacing */
    }
    
    /* Navigation Drawer Trigger */
    .elektra-desktop-menu,
    .d-desktop-only {
        display: none !important;
    }
    
    .elektra-mobile-toggle {
        display: flex !important;
    }
    
    /* Hero Split Layout Stack */
    .hero-section {
        padding: 100px 0 60px 0;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-center-text {
        align-items: center;
        text-align: center;
    }
    
    .hero-center-text h1 {
        font-size: 38px !important;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .hero-center-text p.subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 28px;
    }

    .hero-feature-badges {
        margin-top: 25px;
        padding: 10px 20px;
        gap: 12px;
        border-radius: 20px;
    }

    .feature-badge {
        font-size: 11.5px;
    }

    .feature-badge-divider {
        display: none;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-pill {
        margin-bottom: 20px;
    }
    
    /* Search Capsule Refactor (Mobile) */
    .search-capsule-wrapper {
        margin-top: 30px;
        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .horizontal-search-form {
        display: flex !important;
        flex-direction: column !important;
        border-radius: var(--border-radius-md) !important; /* Normal card on mobile instead of capsule */
        padding: 20px !important;
        gap: 16px !important;
        align-items: stretch !important;
    }
    
    .premium-select-wrapper .premium-dropdown-panel {
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .horizontal-search-form::before {
        border-radius: var(--border-radius-md);
    }
    
    .capsule-field {
        padding: 8px 12px;
        width: 100%;
    }
    
    .field-divider {
        display: none; /* Hide dividers on mobile! */
    }
    
    .capsule-button-wrapper {
        width: 100%;
        padding-right: 0;
        margin-top: 8px;
    }
    
    .btn-capsule-search {
        width: 100%;
        justify-content: center;
        border-radius: var(--border-radius-sm);
        padding: 14px;
    }
    
    .popular-glowing-tags {
        justify-content: center;
        padding-left: 0;
    }
    
    /* Portals Grid */
    .portals-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Jobs Sidebar & Directory Grid */
    .directory-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        display: none; /* Can be toggled with JS or stays collapsed */
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Footer Layout */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Small Tablets & Large Mobiles (up to 768px) */
@media (max-width: 768px) {
    .btn-randevu {
        display: none !important;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .talents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Mobiles (up to 480px) */
@media (max-width: 480px) {
    h1 { font-size: 32px !important; }
    h2 { font-size: 26px !important; }
    
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 80px 0 120px;
    }
    
    .hero-content p.subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .search-tabs {
        width: 100%;
        max-width: 320px;
        display: flex;
    }
    
    .search-tab {
        padding: 8px 12px;
        font-size: 10.5px;
        flex: 1;
        justify-content: center;
    }
    
    .talents-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portal-card {
        padding: 24px;
    }
    
    .job-card {
        padding: 24px;
        min-height: auto;
    }
}

/* Mobile Sticky Bottom Action Bar */
.mobile-sticky-bottom-bar {
    display: none; /* Hide on desktop */
}

@media (max-width: 992px) {
    .mobile-sticky-bottom-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 65px !important;
        background-color: #ffffff !important;
        box-shadow: 0 -4px 15px rgba(12, 30, 54, 0.12) !important;
        z-index: 9999 !important; /* Fixed at the very bottom */
        padding: 10px 16px !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }
    
    .sticky-btn-register {
        flex: 1 !important;
        background-color: #FF7C00 !important; /* Sunrise Orange */
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        font-weight: 800 !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        text-transform: uppercase !important;
        font-family: 'Outfit', sans-serif !important;
        box-shadow: 0 4px 12px rgba(255, 124, 0, 0.25) !important;
        box-sizing: border-box !important;
        transition: transform 0.2s !important;
    }
    
    .sticky-btn-login {
        flex: 1 !important;
        background-color: #25D366 !important; /* WhatsApp Green */
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        font-weight: 800 !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        text-transform: uppercase !important;
        font-family: 'Outfit', sans-serif !important;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25) !important;
        box-sizing: border-box !important;
        transition: transform 0.2s !important;
    }
    
    .sticky-btn-register:active,
    .sticky-btn-login:active {
        transform: scale(0.98) !important;
    }
    
    /* Avoid bottom content cut-off by adding padding to body */
    body {
        padding-bottom: 65px !important;
    }

    /* Hide sticky bottom bar when modal is open */
    body.modal-open .mobile-sticky-bottom-bar {
        display: none !important;
    }
}

/* Premium Responsive Modal for Mobiles */
@media (max-width: 768px) {
    .premium-modal-backdrop {
        padding: 0 !important;
        align-items: stretch !important;
    }
    
    .premium-modal-card {
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        transform: translateY(100%) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    .premium-modal-backdrop.open .premium-modal-card {
        transform: translateY(0) !important;
    }
    
    .premium-modal-close {
        position: fixed !important;
        top: 16px !important;
        right: 16px !important;
        z-index: 2010 !important;
        background: rgba(12, 30, 54, 0.6) !important;
        color: #ffffff !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 24px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
        border: none !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }
    
    .premium-modal-header {
        padding: 32px 20px 12px 20px !important;
        padding-right: 60px !important; /* Avoid overlap with the fixed close button */
    }
    
    .premium-modal-header-deck {
        padding: 0 20px 16px 20px !important;
    }
    
    .modal-two-columns {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .premium-modal-footer {
        padding: 20px !important;
        padding-bottom: 40px !important;
    }
}
