/* MOBILE SKOOL STYLE FIXES */

/* Hide new mobile header on desktop */
.mobile-header-skool {
    display: none;
}

.desktop-only {
    display: flex;
}

@media (max-width: 768px) {

    /* Hide specific desktop elements */
    .desktop-only {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
        box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
    }

    /* SHOW SKOOL HEADER */
    .mobile-header-skool {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .mh-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        height: 60px;
    }

    .mh-left {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .btn-burger {
        background: none;
        border: none;
        font-size: 20px;
        color: #333;
        cursor: pointer;
    }

    .mh-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        color: #1e293b;
        font-family: 'Outfit';
        font-size: 15px;
        text-decoration: none;
    }

    .mh-logo img {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }

    .mh-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .btn-icon {
        background: none;
        border: none;
        font-size: 18px;
        color: #64748b;
        cursor: pointer;
    }

    .mh-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* TABS */
    .mh-tabs {
        display: flex;
        overflow-x: auto;
        padding: 0 15px;
        gap: 25px;
        border-bottom: 1px solid #e2e8f0;
        background: white;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mh-tabs::-webkit-scrollbar {
        display: none;
    }

    .mh-tab {
        padding: 12px 0;
        color: #64748b;
        font-weight: 500;
        font-size: 14px;
        position: relative;
        white-space: nowrap;
        text-decoration: none;
    }

    .mh-tab.active {
        color: #1e293b;
        font-weight: 700;
    }

    .mh-tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: #1e293b;
        border-radius: 3px 3px 0 0;
    }

    /* FULL SCREEN SEARCH OVERLAY */
    .mob-search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1010;
        display: flex;
        flex-direction: column;
        padding: 15px;
        transition: opacity 0.2s;
    }

    .mso-header {
        width: 100%;
        display: flex;
        gap: 10px;
        flex-shrink: 0;
        margin-bottom: 20px;
    }

    .mso-header input {
        flex: 1;
        height: 45px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding-left: 40px;
        background: #f8fafc url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2394a3b8" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>') no-repeat 15px center;
        outline: none;
        font-size: 16px;
    }

    .mso-header button {
        background: none;
        border: none;
        font-weight: 600;
        color: #6a017f;
        font-size: 14px;
    }

    /* LIVE RESULTS LIST */
    .live-results-container {
        flex: 1;
        width: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .lr-item {
        display: flex;
        gap: 15px;
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
        text-decoration: none;
        color: inherit;
        animation: fadeIn 0.3s ease;
    }

    .lr-cover {
        width: 50px;
        height: 75px;
        border-radius: 4px;
        object-fit: cover;
        background: #eee;
        flex-shrink: 0;
    }

    .lr-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .lr-title {
        font-weight: 700;
        font-size: 15px;
        color: #1e293b;
        margin-bottom: 3px;
        line-height: 1.2;
    }

    .lr-author {
        font-size: 13px;
        color: #64748b;
    }

    .lr-no-results {
        text-align: center;
        color: #94a3b8;
        padding: 40px 0;
    }

    /* Fix Content Padding */
    .main-layout {
        padding-top: 0 !important;
    }

    .p-menu {
        display: flex !important;
    }

    .com-layout {
        display: flex !important;
        flex-direction: column !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}