/* Desktop - Show desktop nav, hide mobile nav */
@media (min-width: 769px) {
    .desktop-nav {
        display: flex !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }

    .logo span {
        display: inline !important;
    }

    .container {
        margin-top: 0;
    }

    header {
        position: sticky;
    }
}

/* Instagram-Like Mobile Styling */
@media (max-width: 768px) {
    /* Reset body for fullscreen mobile experience */
    body {
        overflow-x: hidden;
    }

    /* Header - Hidden on mobile (already handled in main CSS) */

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu a {
        padding: 15px 20px;
        color: #262626;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #f0f0f0;
        font-weight: 500;
        transition: background 0.2s;
    }

    .mobile-menu a:hover {
        background: #fafafa;
    }

    .mobile-menu a i {
        font-size: 1.2rem;
        color: #0095f6;
    }

    .mobile-menu a:last-child {
        border-bottom: none;
    }

    /* Main content spacing - No top margin since header is removed */
    .container {
        margin-top: 0;
    }

    /* Hero Section - Full Screen Mobile Design */
    .hero {
        padding: 60px 20px 40px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-bottom: 0;
        border-radius: 0;
        position: relative;
    }
    
    .hero::before {
        opacity: 0.2;
    }

    .hero h1 {
        font-size: 2.2rem;
        color: white;
        text-shadow: 0 2px 20px rgba(0,0,0,0.3);
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.95);
        font-weight: 300;
    }

    /* Categories - Modern Mobile Design */
    .categories {
        padding: 30px 0;
        background: white;
        border-radius: 25px 25px 0 0;
        margin-top: -25px;
        position: relative;
        z-index: 10;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    }

    .section-title {
        display: block;
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding: 0 15px;
        text-align: center;
        color: #333;
        font-weight: 700;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .categories-grid {
        display: flex;
        overflow-x: auto;
        padding: 0 15px 15px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    
    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .categories-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .category-card {
        min-width: 140px;
        max-width: 140px;
        padding: 20px 15px;
        border-radius: 20px;
        border: none;
        cursor: pointer;
        scroll-snap-align: start;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        background: white;
    }

    .category-card:active {
        transform: scale(0.95);
    }
    
    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .category-card h3 {
        font-size: 0.9rem;
        text-align: center;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .category-card p {
        display: none;
    }

    /* Content Grid - Modern Mobile Design */
    .content-section {
        padding: 30px 0;
        background: white;
        margin-top: 10px;
        border-radius: 25px 25px 0 0;
    }

    .content-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .content-item {
        background: white;
        border: none;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .content-item:active {
        transform: scale(0.98);
    }

    .content-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 0;
    }

    .content-item-body {
        padding: 20px;
    }

    .content-item h4 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #262626;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .content-item p {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    /* Subscription Section - Instagram Style Mobile */
    #subscriptions {
        padding: 20px 0 !important;
    }

    #subscriptions .container {
        padding: 0 15px;
    }

    #subscriptions .container > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        margin-bottom: 20px;
    }

    #subscriptions .section-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    #subscriptions .container > div:first-child > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #subscriptions select {
        width: 100% !important;
        padding: 12px !important;
        border-radius: 12px !important;
        border: 1px solid #ddd !important;
        font-size: 0.9rem !important;
        background: white !important;
    }

    #subscriptions .btn {
        width: 100% !important;
        padding: 14px !important;
        border-radius: 12px !important;
        font-size: 0.95rem !important;
    }

    /* Subscription Cards - Instagram Style */
    #subscriptions .content-item {
        border-radius: 15px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        margin-bottom: 12px;
        padding: 15px !important;
    }

    #subscriptions .content-item img {
        height: 180px !important;
        border-radius: 12px !important;
        margin-bottom: 12px;
    }

    #subscriptions .content-item h3 {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #262626 !important;
        margin-bottom: 8px !important;
    }

    #subscriptions .content-item p {
        font-size: 0.9rem !important;
        color: #666 !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }

    /* Subscription Badges Mobile */
    #subscriptions .content-item > div[style*="position: absolute"] {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
        border-radius: 12px !important;
    }

    /* Category and Period Badges */
    #subscriptions .content-item > div:nth-last-child(2) {
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    #subscriptions .content-item > div:nth-last-child(2) > span {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
        border-radius: 12px !important;
    }

    /* Price Display Mobile */
    #subscriptions .content-item > div:last-of-type {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 12px !important;
        background: #f8f9fa !important;
        border-radius: 12px !important;
        margin-top: 12px !important;
    }

    #subscriptions .content-item > div:last-of-type > span:first-child {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }

    #subscriptions .content-item > div:last-of-type > span:last-child {
        font-size: 0.85rem !important;
    }

    /* Subscription Button Mobile */
    #subscriptions .content-item > button.btn {
        width: 100% !important;
        margin-top: 12px !important;
        padding: 14px !important;
        border-radius: 12px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
    }

    /* Category Group Headers */
    #subscriptions h3[style*="fontSize"] {
        font-size: 1.3rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
        margin-bottom: 15px !important;
        padding: 0 15px;
    }

    #subscriptions h3[style*="fontSize"] > span {
        font-size: 0.85rem !important;
        color: #999 !important;
    }

    /* Buttons - Modern Mobile Style */
    .btn {
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.95rem;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .btn:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }

    .btn-outline {
        background: transparent;
        border: 2px solid #667eea;
        color: #667eea;
        box-shadow: none;
    }

    .btn-outline:active {
        background: rgba(102, 126, 234, 0.1);
    }

    /* Modal - Full Screen Instagram Style */
    .modal {
        background: rgba(0,0,0,0.9);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        background: white;
        border-radius: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-header {
        padding: 15px;
        border-bottom: 1px solid #dbdbdb;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }

    .modal-header h3 {
        font-size: 1rem;
        font-weight: 600;
    }

    .close-btn {
        font-size: 28px;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .video-player {
        flex: 1;
        width: 100%;
        border-radius: 0;
    }

    /* Bottom Navigation - Enhanced Mobile Design */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(0,0,0,0.1);
        display: flex;
        justify-content: space-around;
        padding: 12px 0 8px;
        z-index: 1000;
        backdrop-filter: blur(20px);
        box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
        border-radius: 20px 20px 0 0;
    }
    
    .bottom-nav-item {
        padding: 8px 20px;
        min-width: 70px;
    }
    
    .bottom-nav-item i {
        font-size: 1.5rem;
    }
    
    .bottom-nav-item.active {
        color: #667eea;
    }
    
    .bottom-nav-item.active i {
        transform: scale(1.15);
    }

    /* Loading State */
    .loading {
        padding: 60px 20px;
        text-align: center;
        color: #8e8e8e;
        font-size: 0.95rem;
    }

    /* Empty State */
    .empty-state {
        padding: 60px 20px;
        text-align: center;
        color: #8e8e8e;
    }

    .empty-state i {
        font-size: 3rem;
        color: #dbdbdb;
        margin-bottom: 15px;
    }

    /* Footer - Modern Mobile Design */
    footer {
        display: block;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        text-align: center;
        padding: 40px 20px;
        margin-top: 0;
        border-radius: 25px 25px 0 0;
        position: relative;
    }
    
    footer p {
        margin: 8px 0;
        font-size: 0.9rem;
        opacity: 0.95;
    }

    /* Bottom Navigation - Enhanced Instagram Style (already defined above) */

    /* Add padding to main content for bottom nav */
    .content-section {
        padding-bottom: 70px;
    }
}

/* Extra Small Phones */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .category-card {
        min-width: 100px;
        max-width: 100px;
        padding: 12px 8px;
    }

    .category-icon {
        font-size: 1.8rem;
    }

    .category-card h3 {
        font-size: 0.8rem;
    }

    .content-item-body {
        padding: 12px;
    }

    .content-item h4 {
        font-size: 0.95rem;
    }

    .content-item p {
        font-size: 0.8rem;
    }

    .btn {
        padding: 10px;
        font-size: 0.85rem;
    }

    /* Subscription Section - Extra Small Mobile */
    #subscriptions .section-title {
        font-size: 1.3rem !important;
    }

    #subscriptions .content-item {
        padding: 12px !important;
    }

    #subscriptions .content-item img {
        height: 150px !important;
    }

    #subscriptions .content-item h3 {
        font-size: 1rem !important;
    }

    #subscriptions .content-item p {
        font-size: 0.85rem !important;
    }

    #subscriptions .content-item > div:last-of-type > span:first-child {
        font-size: 1rem !important;
    }

    #subscriptions .content-item > button.btn {
        padding: 12px !important;
        font-size: 0.9rem !important;
    }

    #subscriptions h3[style*="fontSize"] {
        font-size: 1.1rem !important;
        padding: 0 12px;
    }
}

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
    .admin-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

