/* Tutoring Utility Classes - Phase 1 */
/* Typography, Spacing, and Color Utilities */

/* ===== TYPOGRAPHY UTILITIES ===== */

/* Font Families */
.font-display {
    font-family: 'Hedvig Letters Serif', serif;
}

.font-body {
    font-family: 'Figtree', sans-serif;
}

/* Font Sizes with consistent line heights */
.text-xs {
    font-size: 12px;
    line-height: 100%;
}

.text-sm {
    font-size: 14px;
    line-height: 100%;
}

.text-base {
    font-size: 16px;
    line-height: 24px;
}

.text-lg {
    font-size: 18px;
    line-height: 100%;
}

.text-xl {
    font-size: 20px;
    line-height: 30px;
}

.text-2xl {
    font-size: 24px;
    line-height: 32px;
}

.text-3xl {
    font-size: 28px;
    line-height: 36px;
}

.text-4xl {
    font-size: 32px;
    line-height: 100%;
}

.text-5xl {
    font-size: 40px;
    line-height: 100%;
}

/* Font Weights */
.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Text Colors - ACTEX Brand Colors */
.text-primary {
    color: var(--slate-grey);
}

.text-secondary {
    color: var(--actu-grey);
}

.text-accent {
    color: var(--royal-blue);
}

.text-brand {
    color: var(--navy);
}

.text-white {
    color: white;
}

.text-royal-blue {
    color: var(--royal-blue);
}

.text-navy {
    color: var(--navy);
}

.text-slate-grey {
    color: var(--slate-grey);
}

.text-aqua {
    color: var(--aqua);
}

.text-actu-grey {
    color: var(--actu-grey);
}

.text-yellow {
    color: var(--yellow);
}

/* Text Alignment */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* ===== SPACING UTILITIES ===== */

/* Margin Bottom Scale */
.mb-xs {
    margin-bottom: 0.25rem;
}

.mb-sm {
    margin-bottom: 0.5rem;
}

.mb-md {
    margin-bottom: 1rem;
}

.mb-lg {
    margin-bottom: 1.5rem;
}

.mb-xl {
    margin-bottom: 2rem;
}

.mb-2xl {
    margin-bottom: 3rem;
}

.mb-3xl {
    margin-bottom: 4rem;
}

.mb-4xl {
    margin-bottom: 6rem;
}

/* Margin Top Scale */
.mt-xs {
    margin-top: 0.25rem;
}

.mt-sm {
    margin-top: 0.5rem;
}

.mt-md {
    margin-top: 1rem;
}

.mt-lg {
    margin-top: 1.5rem;
}

.mt-xl {
    margin-top: 2rem;
}

.mt-2xl {
    margin-top: 3rem;
}

.mt-3xl {
    margin-top: 4rem;
}

.mt-4xl {
    margin-top: 6rem;
}

/* Margin All Sides */
.m-xs {
    margin: 0.25rem;
}

.m-sm {
    margin: 0.5rem;
}

.m-md {
    margin: 1rem;
}

.m-lg {
    margin: 1.5rem;
}

.m-xl {
    margin: 2rem;
}

.m-2xl {
    margin: 3rem;
}

.m-3xl {
    margin: 4rem;
}

.m-4xl {
    margin: 6rem;
}

/* Padding Scale */
.p-xs {
    padding: 0.25rem;
}

.p-sm {
    padding: 0.5rem;
}

.p-md {
    padding: 1rem;
}

.p-lg {
    padding: 1.5rem;
}

.p-xl {
    padding: 2rem;
}

.p-2xl {
    padding: 3rem;
}

.p-3xl {
    padding: 4rem;
}

.p-4xl {
    padding: 6rem;
}

/* Padding X (horizontal) */
.px-xs {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.px-sm {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-md {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-lg {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-xl {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-2xl {
    padding-left: 3rem;
    padding-right: 3rem;
}

/* Padding Y (vertical) */
.py-xs {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-sm {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-md {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-lg {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-xl {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-2xl {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ===== LAYOUT UTILITIES ===== */

/* Display */
.block {
    display: block;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

/* Flex Direction */
.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.flex-col-reverse {
    flex-direction: column-reverse;
}

/* Flex Wrap */
.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

/* Justify Content */
.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}

/* Align Items */
.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-center {
    align-items: center;
}

.items-baseline {
    align-items: baseline;
}

.items-stretch {
    align-items: stretch;
}

/* Gap */
.gap-xs {
    gap: 0.25rem;
}

.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 1rem;
}

.gap-lg {
    gap: 1.5rem;
}

.gap-xl {
    gap: 2rem;
}

.gap-2xl {
    gap: 3rem;
}

/* Width */
.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.w-fit {
    width: fit-content;
}

.w-max {
    width: max-content;
}

.w-min {
    width: min-content;
}

/* Height */
.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.h-fit {
    height: fit-content;
}

.h-max {
    height: max-content;
}

.h-min {
    height: min-content;
}

/* ===== POSITIONING UTILITIES ===== */

/* Position */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.static {
    position: static;
}

/* Z-Index */
.z-0 {
    z-index: 0;
}

.z-1 {
    z-index: 1;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.z-100 {
    z-index: 100;
}

.z-1000 {
    z-index: 1000;
}

/* ===== BORDER UTILITIES ===== */

/* Border Radius */
.rounded-none {
    border-radius: 0;
}

.rounded-sm {
    border-radius: 4px;
}

.rounded {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 12px;
}

.rounded-xl {
    border-radius: 16px;
}

.rounded-2xl {
    border-radius: 20px;
}

.rounded-3xl {
    border-radius: 24px;
}

.rounded-full {
    border-radius: 50%;
}

/* Border Width */
.border-0 {
    border-width: 0;
}

.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-4 {
    border-width: 4px;
}

/* Border Color - ACTEX Brand Colors */
.border-gray-200 {
    border-color: #E5E7EB;
}

.border-gray-300 {
    border-color: #E5E7EB;
}

.border-royal-blue {
    border-color: var(--royal-blue);
}

.border-navy {
    border-color: var(--navy);
}

.border-aqua {
    border-color: var(--aqua);
}

.border-yellow {
    border-color: var(--yellow);
}

.border-slate-grey {
    border-color: var(--slate-grey);
}

.border-actu-grey {
    border-color: var(--actu-grey);
}

/* ===== BACKGROUND UTILITIES - ACTEX Brand Colors ===== */

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: var(--aqua-light);
}

.bg-gray-100 {
    background-color: var(--aqua-light);
}

.bg-gray-200 {
    background-color: #E5E7EB;
}

.bg-royal-blue {
    background-color: var(--royal-blue);
}

.bg-navy {
    background-color: var(--navy);
}

.bg-slate-grey {
    background-color: var(--slate-grey);
}

.bg-aqua {
    background-color: var(--aqua);
}

.bg-actu-grey {
    background-color: var(--actu-grey);
}

.bg-yellow {
    background-color: var(--yellow);
}

.bg-aqua-light {
    background-color: var(--aqua-light);
}

/* ===== SHADOW UTILITIES ===== */

.shadow-none {
    box-shadow: none;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.shadow-xl {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== TRANSITION UTILITIES ===== */

.transition-none {
    transition: none;
}

.transition-fast {
    transition: all 0.2s ease;
}

.transition {
    transition: all 0.3s ease;
}

.transition-slow {
    transition: all 0.5s ease;
}

/* ===== OPACITY UTILITIES ===== */

.opacity-0 {
    opacity: 0;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}

/* ===== CURSOR UTILITIES ===== */

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.cursor-default {
    cursor: default;
}

/* ===== OVERFLOW UTILITIES ===== */

.overflow-hidden {
    overflow: hidden;
}

.overflow-visible {
    overflow: visible;
}

.overflow-auto {
    overflow: auto;
}

.overflow-scroll {
    overflow: scroll;
}

/* ===== RESPONSIVE UTILITIES ===== */

/* Hide on mobile */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .hidden-desktop {
        display: none !important;
    }
}

/* Mobile-specific spacing */
@media (max-width: 768px) {
    .mobile-mb-sm {
        margin-bottom: 0.5rem !important;
    }
    
    .mobile-mb-md {
        margin-bottom: 1rem !important;
    }
    
    .mobile-p-sm {
        padding: 0.5rem !important;
    }
    
    .mobile-p-md {
        padding: 1rem !important;
    }
}

/* ===== COMMON COMBINATIONS ===== */

/* Common flex patterns */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-start {
    display: flex;
    align-items: flex-start;
}

.flex-end {
    display: flex;
    align-items: flex-end;
}

/* Common text patterns */
.text-center-bold {
    text-align: center;
    font-weight: 700;
}

.text-left-medium {
    text-align: left;
    font-weight: 500;
}

/* Common spacing patterns */
.section-padding {
    padding: 6rem 0;
}

.section-padding-sm {
    padding: 4rem 0;
}

.section-padding-lg {
    padding: 8rem 0;
}

/* Container patterns */
.container-wide {
    padding-left: max(130px, 15vw);
    padding-right: max(130px, 15vw);
}

.container-narrow {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 1199px) {
    .container-wide {
        padding-left: 15px;
        padding-right: 15px;
    }
}
