/**
 * Meşk FM - Responsive CSS
 * Mobil uyumluluk
 */

/* ========================================
   TABLET (max-width: 1024px)
======================================== */
@media (max-width: 1024px) {
    :root {
        --header-height: 100px;
        /* Mobilde daha küçük header */
    }

    /* Header yüksekliğini override et */
    .header {
        height: var(--header-height) !important;
    }

    /* Alt sayfalarda içerik başlarken header payı bırak */
    body.page-sub .main-content {
        padding-top: calc(var(--header-height) + 30px);
    }

    .header-inner {
        padding: 0 20px;
    }

    .nav-desktop {
        display: none !important;
    }

    .logo-img {
        max-height: 70px;
        /* Mobilde daha küçük logo */
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        color: var(--text);
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 101;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        /* Tam ekran */
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 5, 5, 0.98);
        /* Koyu arka plan */
        backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        /* En üstte */
        overflow-y: auto;
    }

    .mobile-menu.open {
        transform: translateX(0);
    }

    .mobile-menu-inner {
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-height: calc(100vh - var(--header-height));
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 16px 20px;
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--text-light);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        color: var(--primary);
        background: rgba(217, 119, 6, 0.1);
        border-color: rgba(217, 119, 6, 0.3);
    }

    /* Body scroll engelleme */
    body.menu-open {
        overflow: hidden;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
        /* Mobilde font küçültüldü */
    }

    /* Hero içeriğini yukarı taşı */
    .hero-content {
        transform: translateY(-25%);
        /* Kullanıcı isteği: %25 yukarı */
    }

    .program-item {
        flex-wrap: wrap;
        gap: 16px;
    }

    .program-time {
        min-width: auto;
        width: 100%;
    }
}

/* ========================================
   MOBILE (max-width: 768px)
======================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        /* Mobilde iyice küçültüldü */
        --player-height: 70px;
    }

    body.page-sub .main-content {
        padding-top: calc(var(--header-height) + 20px);
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    /* Header */
    .logo-title {
        font-size: 1.25rem;
    }

    .logo-slogan {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: calc(75vh - var(--header-height));
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-freqs {
        display: none;
    }

    .hero-orb {
        width: 300px !important;
        height: 300px !important;
    }

    /* Section Headers */
    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 20px;
    }

    /* Footer */
    .footer {
        padding: 48px 0 120px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: auto;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    /* Frequencies */
    .freq-grid {
        grid-template-columns: 1fr;
    }

    /* Programs */
    .program-list {
        padding: 0;
    }

    .program-item {
        padding: 20px;
    }

    .program-name {
        font-size: 1.125rem;
    }

    /* App Section */
    .app-title {
        font-size: 2rem;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }

    .app-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Contact */
    .contact-cards {
        gap: 16px;
    }

    .contact-card {
        padding: 16px;
    }

    /* Embed */
    .embed-card {
        padding: 16px;
    }

    .embed-code {
        font-size: 0.75rem;
        padding: 12px;
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
======================================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.6875rem;
        padding: 4px 12px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8125rem;
    }

    .btn-lg {
        padding: 14px 28px;
    }

    .glass-card-title {
        font-size: 1.125rem;
    }

    .contact-form-title {
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.625rem;
    }
}

/* ========================================
   LANDSCAPE MOBILE
======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        margin-bottom: 24px;
    }
}

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

    .header,
    .audio-player,
    .mobile-menu,
    .btn {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .footer {
        padding: 20px 0;
    }

    body {
        background: white;
        color: black;
    }
}

/* ========================================
   REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-orb {
        animation: none;
    }
}

/* ========================================
   HIGH CONTRAST
======================================== */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
        --text-muted: #a0a0a0;
    }

    .btn-primary {
        border: 2px solid #fff;
    }
}