/* ==============================================
   TranscriptionSoftware Theme — Utilities
   ============================================== */

/* Screen reader only */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: var(--space-md) var(--space-lg);
    clip: auto;
    overflow: visible;
    background-color: var(--color-primary);
    color: #fff;
    font-size: var(--font-size-base);
    font-weight: 600;
    z-index: 9999;
}

/* Text */
.text-center {
    text-align: center;
}

.text-sm {
    font-size: var(--font-size-sm);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-secondary {
    color: var(--color-text-secondary);
}

/* Display */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

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

/* Gap */
.gap-xs {
    gap: var(--space-xs);
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.gap-xl {
    gap: var(--space-xl);
}

/* Spacing */
.mt-section {
    margin-top: var(--space-section);
}

.mb-section {
    margin-bottom: var(--space-section);
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-md {
    margin-top: var(--space-md);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-xl);
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Prevent body scroll when nav is open */
body.nav-open {
    overflow: hidden;
}
