/**
 * YouTube Vanced Theme Responsive Stylesheet
 *
 * Ensures seamless experience across Mobile (320px - 767px),
 * Tablet (768px - 1024px), and PC Desktop screens (1025px+).
 *
 * @package YouTubeVanced
 */

/* -------------------------------------------------------------
 * TABLETS & SMALL DESKTOPS (<= 1024px)
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ytv-header__nav {
        display: none;
    }

    .ytv-hamburger {
        display: flex;
    }

    .ytv-hero__title {
        font-size: 2.8rem;
    }

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

    .ytv-footer__brand {
        max-width: 100%;
        grid-column: span 2;
    }
}

/* -------------------------------------------------------------
 * MOBILE DEVICES (<= 768px)
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
    .ytv-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ytv-header__frame {
        border-radius: var(--ytv-radius-sm);
    }

    .ytv-header__inner {
        padding: 8px 12px;
    }

    .ytv-logo__text {
        font-size: 1.15rem;
    }

    .ytv-hero {
        padding: 24px 0 40px;
    }

    .ytv-hero__title {
        font-size: 2.2rem;
        letter-spacing: -0.02em;
    }

    .ytv-hero__desc {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .ytv-hero__phone-stage {
        margin: 10px auto 30px;
    }

    .ytv-hero__phone-tilt {
        max-width: 100%;
    }

    .ytv-btn--lg {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.05rem;
    }

    .ytv-cards-grid,
    .ytv-cards-grid--2col,
    .ytv-features-grid,
    .ytv-steps-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ytv-dl-hero__card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 18px;
        gap: 16px;
    }

    .ytv-dl-hero__title {
        font-size: 1.7rem;
    }

    .ytv-dl-box {
        padding: 24px 16px;
    }

    .ytv-dl-box__specs-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 12px;
    }

    .ytv-specs-wrap {
        padding: 20px 14px;
    }

    .ytv-specs-table th {
        width: 40%;
        padding: 10px;
        font-size: 0.85rem;
    }

    .ytv-specs-table td {
        padding: 10px;
        font-size: 0.85rem;
    }

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

    .ytv-footer__brand {
        grid-column: span 1;
    }

    .ytv-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }
}

/* -------------------------------------------------------------
 * SMALL PHONES (<= 480px)
 * ------------------------------------------------------------- */
@media (max-width: 480px) {
    .ytv-hero__title {
        font-size: 1.9rem;
    }

    .ytv-dl-box__specs-row {
        grid-template-columns: 1fr;
    }

    .ytv-faq-question {
        padding: 14px 18px;
        font-size: 0.98rem;
    }

    .ytv-faq-answer {
        padding: 0 18px 16px;
        font-size: 0.9rem;
    }
}

/* -------------------------------------------------------------
 * MOBILE DRAWER NAVIGATION
 * ------------------------------------------------------------- */
.ytv-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

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

.ytv-mobile-drawer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.ytv-mobile-drawer__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 340px;
    height: 100%;
    background: #0d101a;
    border-left: 1px solid var(--ytv-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

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

.ytv-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ytv-border);
}

.ytv-mobile-drawer__close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.ytv-mobile-nav-list {
    list-style: none;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ytv-mobile-nav-list li a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #cbd5e1;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--ytv-border-subtle);
}

.ytv-mobile-nav-list li a:hover {
    color: #ffffff;
}

.ytv-mobile-drawer__footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--ytv-border);
}
