/* =====================================
   YOUNGVERSE AI — RESPONSIVE STYLES
===================================== */

/* TABLETS */
@media (max-width: 1024px) {

    .container {
        width: 94%;
    }

    .section {
        padding: 65px 0;
    }

    .nav-links {
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 30px;
    }

    .card {
        padding: 20px;
    }
}

/* SMALL TABLETS */
@media (max-width: 768px) {

    html {
        scroll-padding-top: 70px;
    }

    .container {
        width: 92%;
    }

    .section {
        padding: 55px 0;
    }

    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .header-inner {
        min-height: 68px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
        padding-bottom: 14px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .btn {
        padding: 11px 19px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        margin-bottom: 30px;
    }
}

/* MOBILE PHONES */
@media (max-width: 576px) {

    body {
        font-size: 14px;
    }

    .container {
        width: 90%;
    }

    .section {
        padding: 45px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .header-inner {
        min-height: 62px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 35px;
        height: 35px;
    }

    .nav-links {
        gap: 10px 15px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .btn {
        width: 100%;
        padding: 12px 16px;
    }

    .card {
        padding: 18px;
    }

    .section-title {
        margin-bottom: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    input,
    select,
    textarea {
        max-width: 100%;
    }
}

/* VERY SMALL PHONES */
@media (max-width: 380px) {

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        width: 92%;
    }

    .logo {
        font-size: 16px;
    }

    .nav-links {
        gap: 9px;
    }

    .nav-links a {
        font-size: 11px;
    }
}

/* TABLE SCROLL SUPPORT */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
}

/* PREVENT HORIZONTAL OVERFLOW */
@media (max-width: 768px) {

    .row,
    .grid,
    .flex {
        flex-wrap: wrap;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

/* REDUCED MOTION ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* =====================================
   YOUNGVERSE AI - MOBILE DASHBOARD FIX
===================================== */

@media (max-width: 750px) {

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        font-size: 23px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
        flex-shrink: 0;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1999;
        background: rgba(15, 23, 42, .5);
        opacity: 0;
        visibility: hidden;
        transition: .3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }
}

@media (min-width: 751px) {
    .mobile-menu-btn,
    .sidebar-overlay {
        display: none !important;
    }
}