/* ==========================================================================
   MOBILE & RESPONSIVE STYLESHEET
   ========================================================================== */

/* Tablet & Mobile Breakpoint (max-width: 992px) */
@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

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

    .footer-about {
        grid-column: span 2;
    }

    /* Oculta menu horizontal desktop no tablet/mobile */
    .main-nav .nav-menu,
    .main-nav .search-box {
        display: none !important;
    }

    /* Ativa elementos móveis na barra de navegação */
    .btn-mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
        background-color: var(--bg-surface);
        border: 1px solid var(--border-color);
        color: #ffffff;
        font-size: 1.2rem;
        cursor: pointer;
    }

    .mobile-nav-logo {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex: 1;
        text-align: center;
        padding: 0 10px;
    }

    .mobile-logo-img {
        max-height: 36px;
        max-width: 160px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: inline-block;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    }

    .mobile-btn-submit {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: var(--radius-full);
        background: linear-gradient(135deg, var(--accent-primary), #b91c1c);
        color: #ffffff;
        font-size: 1rem;
        box-shadow: 0 2px 10px rgba(230, 57, 70, 0.4);
    }

    .header-actions {
        display: none;
    }

    .main-header {
        display: none !important;
    }
}

/* Telas pequenas de Smartphone (max-width: 480px) */
@media (max-width: 480px) {
    .site-logo-img {
        width: 190px;
        max-width: 78vw;
    }

    .mobile-logo-img {
        max-height: 32px;
        max-width: 140px;
    }
}

/* ==========================================================================
   MOBILE DRAWER LATERAL (SLIDE-OUT MENU)
   ========================================================================== */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    background-color: #0f1019;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.85);
}

.mobile-drawer.active {
    transform: translateX(0);
}

/* Cabeçalho do Drawer */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #090a10;
}

.drawer-logo {
    display: flex;
    align-items: center;
}

.drawer-logo-img {
    height: 32px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    display: block;
}

.btn-close-drawer {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #e2e8f0;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close-drawer:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

/* Busca no Drawer */
.drawer-search {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-search-form {
    display: flex;
    align-items: center;
    background-color: #07070c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 2px 3px 2px 12px;
}

.drawer-search-form:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.25);
}

.drawer-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.82rem;
    font-family: inherit;
}

.drawer-search-form input::placeholder {
    color: var(--text-sub);
}

.drawer-search-form button {
    background: var(--accent-primary);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Links do Drawer */
.drawer-menu {
    list-style: none;
    padding: 10px 12px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-menu li {
    list-style: none;
    margin: 0;
}

.drawer-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.drawer-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.drawer-menu li a:hover,
.drawer-menu li a:active {
    background: rgba(230, 57, 70, 0.14);
    border-color: rgba(230, 57, 70, 0.35);
    color: #ffffff;
    transform: translateX(3px);
}

.drawer-menu li.drawer-highlight a {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.22) 0%, rgba(245, 158, 11, 0.22) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.15);
}

.drawer-menu li.drawer-highlight a:hover {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.35) 0%, rgba(245, 158, 11, 0.35) 100%);
    border-color: var(--accent-gold);
}

/* ==========================================================================
   MOBILE PHONES (max-width: 768px & 480px)
   ========================================================================== */
@media (max-width: 768px) {
    .top-notice .notice-flex {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .post-card {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .post-title {
        font-size: 1.18rem;
    }

    .single-post-article, .submit-page-container {
        padding: 18px;
    }

    .single-title {
        font-size: 1.45rem;
    }

    .single-telegram-cta {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .btn-tg-cta {
        width: 100%;
        margin-left: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

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

    .footer-about {
        grid-column: span 1;
    }

    /* VIP Page Mobile Enhancements */
    .vip-hero-card {
        padding: 22px 14px;
    }

    .vip-main-title {
        font-size: 1.35rem;
        margin-bottom: 10px;
    }

    .vip-sub-title {
        font-size: 0.86rem;
        margin-bottom: 16px;
    }

    .vip-preview-card {
        padding: 14px 12px;
        margin: 16px 0 14px 0;
    }

    .vip-preview-card h3 {
        font-size: 0.98rem;
    }

    .vip-preview-card p {
        font-size: 0.82rem;
        margin-bottom: 12px;
    }

    .btn-preview-cta,
    .btn-vip-big-cta {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
        gap: 8px;
    }

    .btn-preview-cta i,
    .btn-vip-big-cta i {
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    .btn-main-label {
        font-size: 0.82rem;
        letter-spacing: 0;
    }

    .btn-sub-label {
        font-size: 0.72rem;
    }

    .vip-secure-note {
        font-size: 0.76rem;
    }

    .vip-intl-note {
        width: 100%;
        padding: 8px 10px;
        font-size: 0.74rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .post-stamps {
        flex-direction: column;
        gap: 4px;
        bottom: 8px;
        left: 8px;
    }

    .stamp {
        font-size: 0.72rem;
        padding: 2px 6px;
    }

    .social-share-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-share {
        justify-content: center;
    }

    .age-gate-card {
        padding: 24px 18px;
    }

    .age-gate-card h2 {
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
