/* Global responsive + accessibility baseline for Iran SQL Club */

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: clip;
    max-width: 100%;
}

body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

img,
video,
iframe,
embed,
object,
svg {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

a,
button,
input,
select,
textarea {
    touch-action: manipulation;
}

:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    right: 1rem;
    z-index: 10000;
    background: #1d4ed8;
    color: #fff;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

.responsive-container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(0.75rem, 3vw, 1.5rem);
}

.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .site-header {
        height: auto;
        min-height: 72px;
    }

    .header-container {
        padding-inline: 0.75rem;
        gap: 0.5rem;
    }

    .logo-isc img {
        width: 72px;
        height: 72px;
    }

    .main-nav ul {
        gap: 1rem;
    }

    .consultation-table-wrap,
    .data-card {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .auth-card-pro,
    .modal-container {
        padding: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
