/* MarkaSahne - Full Mobile Responsive */

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* ===== TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .main-footer {
        margin-left: 0 !important;
    }

    .hero-section {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    .live-box {
        display: none !important;
    }

    .features-section {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {
    /* Header */
    .main-header {
        padding: 0 16px !important;
        height: 56px !important;
    }

    .main-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .header-left {
        gap: 12px !important;
    }

    .logo-text {
        font-size: 15px !important;
    }

    .header-right .btn-text {
        display: none !important;
    }

    .header-right .btn-gold {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }

    .user-menu .user-name {
        display: none;
    }

    .search-btn {
        font-size: 16px !important;
    }

    /* Sidebar Mobile */
    .sidebar {
        display: none;
        position: fixed;
        left: 0;
        top: 56px;
        bottom: 0;
        width: 240px;
        z-index: 1000;
        background: var(--bg-secondary, #111);
        border-right: 1px solid #222;
        padding: 16px 0;
        overflow-y: auto;
        flex-direction: column;
    }

    .sidebar.mobile-open {
        display: flex !important;
    }

    .sidebar-item {
        flex-direction: row !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        gap: 12px !important;
    }

    .sidebar-item i {
        font-size: 18px !important;
    }

    /* Main Content */
    .main-content {
        margin-left: 0 !important;
        margin-top: 56px !important;
    }

    /* Hero */
    .hero-section {
        padding: 12px !important;
        height: auto !important;
        grid-template-columns: 1fr !important;
    }

    .hero-slider {
        border-radius: 10px !important;
        min-height: 280px;
    }

    .hero-slide-content {
        padding: 24px 20px !important;
    }

    .hero-title {
        font-size: 32px !important;
        letter-spacing: -0.5px !important;
    }

    .hero-subtitle {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }

    .hero-badge {
        font-size: 10px !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .btn-play, .hero-btn-play {
        padding: 12px 20px !important;
        font-size: 13px !important;
        width: 100%;
        justify-content: center;
    }

    .btn-outline, .hero-btn-list {
        padding: 10px 16px !important;
        font-size: 12px !important;
        width: 100%;
        justify-content: center;
    }

    .hero-dots {
        bottom: 12px !important;
    }

    /* Content Sections */
    .content-section {
        padding: 20px 12px 0 !important;
    }

    .section-header {
        margin-bottom: 12px !important;
    }

    .section-title {
        font-size: 17px !important;
    }

    .section-nav button {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
    }

    .cards-slider {
        gap: 12px !important;
        padding-left: 0 !important;
    }

    .program-card {
        flex: 0 0 155px !important;
        min-width: 155px !important;
    }

    .program-card-image {
        border-radius: 8px !important;
    }

    .program-card-title {
        font-size: 12px !important;
    }

    .program-card-meta {
        font-size: 10px !important;
    }

    .special-card {
        flex: 0 0 165px !important;
        min-width: 165px !important;
    }

    /* Features */
    .features-section {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 24px 12px !important;
    }

    .feature-item {
        padding: 12px !important;
    }

    .feature-icon {
        width: 38px !important;
        height: 38px !important;
    }

    .feature-title {
        font-size: 13px !important;
    }

    .feature-desc {
        font-size: 11px !important;
    }

    /* Footer */
    .main-footer {
        margin-left: 0 !important;
        padding: 32px 16px 16px !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* Programs Page */
    .programs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .page-header {
        padding: 20px 12px 0 !important;
    }

    .page-title {
        font-size: 22px !important;
    }

    /* Watch Page */
    .watch-container {
        padding: 12px !important;
    }

    .video-player {
        border-radius: 8px !important;
        margin-bottom: 16px !important;
    }

    .video-title {
        font-size: 18px !important;
    }

    .episodes-list {
        gap: 8px !important;
    }

    .episode-item {
        padding: 12px !important;
        gap: 12px !important;
    }

    .episode-number {
        font-size: 16px !important;
        min-width: 24px !important;
    }

    /* Auth Pages */
    .auth-container {
        padding: 20px 16px !important;
    }

    .auth-box {
        padding: 28px 20px !important;
    }

    .auth-title {
        font-size: 20px !important;
    }

    /* Live Page */
    .live-page {
        padding: 12px !important;
    }

    .live-main-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .live-chat-box {
        max-height: 350px !important;
        min-height: 300px !important;
    }

    .live-player-controls {
        padding: 8px 12px !important;
    }

    .live-progress-bar {
        width: 80px !important;
    }

    .live-stream-info {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .live-stream-info-left {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .live-stream-thumb {
        width: 80px !important;
        height: 56px !important;
    }

    .live-stream-details h2 {
        font-size: 16px !important;
    }

    .live-info-btn {
        padding: 8px 12px !important;
        font-size: 11px !important;
    }

    .live-others-slider {
        gap: 12px !important;
    }

    .live-other-card {
        flex: 0 0 200px !important;
        min-width: 200px !important;
    }

    /* About Page */
    .about-hero-content {
        grid-template-columns: 1fr !important;
    }

    .about-hero-visual {
        display: none !important;
    }

    .about-title {
        font-size: 28px !important;
    }

    .about-features-mini {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .about-mission-grid {
        grid-template-columns: 1fr !important;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .about-stat-item {
        padding: 16px !important;
    }

    .about-stat-value {
        font-size: 22px !important;
    }

    .about-values-grid {
        grid-template-columns: 1fr !important;
    }

    .about-values-cards {
        grid-template-columns: 1fr !important;
    }

    .about-timeline {
        flex-direction: column !important;
        gap: 20px !important;
        padding-top: 0 !important;
    }

    .about-timeline-line {
        display: none !important;
    }

    .about-timeline-item {
        flex-direction: row !important;
        text-align: left !important;
        gap: 12px !important;
    }

    .about-contact-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Search Page */
    .programs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Profile */
    .profile-container {
        padding: 12px !important;
    }

    /* CTA */
    .cta-strip-inner {
        flex-direction: column !important;
        text-align: center !important;
        padding: 24px !important;
        gap: 16px !important;
    }

    .cta-strip-text h2 {
        font-size: 20px !important;
    }
}

/* ===== SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 26px !important;
    }

    .hero-slider {
        min-height: 240px !important;
    }

    .program-card {
        flex: 0 0 140px !important;
        min-width: 140px !important;
    }

    .special-card {
        flex: 0 0 150px !important;
        min-width: 150px !important;
    }

    .programs-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .footer-links {
        grid-template-columns: 1fr !important;
    }

    .about-stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .features-section {
        padding: 20px 12px !important;
    }

    .live-other-card {
        flex: 0 0 170px !important;
        min-width: 170px !important;
    }

    .bottom-features {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
        padding: 20px 16px !important;
    }
}

/* ===== MOBILE BOTTOM NAV (optional enhancement) ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111;
    border-top: 1px solid #222;
    padding: 8px 0;
    z-index: 900;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .main-content {
        padding-bottom: 60px !important;
    }

    .main-footer {
        padding-bottom: 70px !important;
    }
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #666;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 12px;
    transition: color 0.2s;
}

.mobile-bottom-nav a i {
    font-size: 18px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: #D4AF37;
}


/* ===== PWA INSTALL BANNER ===== */
.pwa-banner {
    position: fixed;
    bottom: 70px;
    left: 12px;
    right: 12px;
    z-index: 950;
    animation: slideUpBanner 0.4s ease;
}

@keyframes slideUpBanner {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pwa-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    gap: 12px;
}

.pwa-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #D4AF37, #a07d3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: #000;
    flex-shrink: 0;
}

.pwa-banner-text strong {
    display: block;
    font-size: 13px;
    color: #fff;
    margin-bottom: 1px;
}

.pwa-banner-text span {
    font-size: 11px;
    color: #888;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-btn {
    background: linear-gradient(135deg, #D4AF37, #a07d3a);
    color: #000;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.pwa-install-btn:hover {
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.pwa-close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

/* iOS Modal */
.pwa-ios-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    padding: 20px;
}

.pwa-ios-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 32px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    position: relative;
}

.pwa-ios-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
}

.pwa-ios-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #D4AF37, #a07d3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    color: #000;
    margin: 0 auto 16px;
}

.pwa-ios-modal-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pwa-ios-modal-content p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.6;
}

@media (min-width: 769px) {
    .pwa-banner {
        bottom: 20px;
        left: auto;
        right: 20px;
        max-width: 400px;
    }
}
