/**
 * SALON BOOKING SYSTEM - RESPONSIVE DESIGN
 * Comprehensive mobile-first responsive layout
 * Updated: December 2024
 */

/* ===================================================================
   BASE/MOBILE FIRST (320px+) - DEFAULT STYLES
   =================================================================== */

/* Viewport Meta Helper */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* Touch-friendly tap targets */
button, 
.btn, 
a, 
input, 
select, 
textarea {
    min-height: 44px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--spacing-sm) * -1);
}

.col {
    flex: 1;
    padding: 0 var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* Column sizes (mobile: full width by default) */
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    width: 100%;
    padding: 0 var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* === Container === */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* === Header/Navigation === */
.header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--spacing-sm);
    gap: var(--spacing-sm);
}

.logo {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

.logo img {
    max-height: 36px;
    width: auto;
}

.nav-menu {
    display: none; /* Hidden on mobile */
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-menu-toggle i {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface);
    z-index: var(--z-modal);
    overflow-y: auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    display: block;
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-2xl) 0;
}

.mobile-menu-list li {
    margin-bottom: var(--spacing-xs);
}

.mobile-menu-list a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.mobile-menu-list a:hover,
.mobile-menu-list a.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.mobile-menu-list a[href*="logout"] {
    color: var(--error);
}

/* === Main Content === */
.main-content {
    min-height: calc(100vh - 60px);
}

/* === Section Spacing === */
.section {
    padding: var(--spacing-xl) 0;
}

.section-sm {
    padding: var(--spacing-lg) 0;
}

.section-lg {
    padding: var(--spacing-2xl) 0;
}

/* === Hero Section === */
.hero {
    position: relative;
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--background) 100%);
    text-align: center;
}

.hero-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 100%;
    padding: 0 var(--spacing-sm);
}

/* Hero Buttons - Stack on mobile */
.hero .flex.gap-md {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.hero .btn-lg {
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

/* === Service Grid === */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.service-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card-content {
    padding: var(--spacing-md);
}

.service-card-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
}

.service-card-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.service-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.service-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    font-family: var(--font-heading);
}

.service-duration {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* === Staff Grid === */
.staff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.staff-card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.staff-card:hover {
    box-shadow: var(--shadow-md);
}

.staff-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    border: 3px solid var(--primary-light);
}

.staff-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
}

.staff-position {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.staff-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    color: var(--warning);
    font-size: var(--font-size-sm);
}

/* === Booking Form === */
.booking-steps {
    display: flex;
    margin-bottom: var(--spacing-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--spacing-sm);
}

.booking-steps::-webkit-scrollbar {
    display: none;
}

.booking-step {
    flex: 0 0 auto;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
    padding: 0 var(--spacing-sm);
}

.booking-step-number {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.booking-step.active .booking-step-number {
    background-color: var(--primary);
    color: var(--text-on-primary);
}

.booking-step.completed .booking-step-number {
    background-color: var(--success);
    color: white;
}

.booking-step-label {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.booking-step.active .booking-step-label {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

/* === Time Slot Grid === */
.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.time-slot {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: var(--surface);
    font-size: var(--font-size-sm);
}

.time-slot:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.time-slot.selected {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--text-on-primary);
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: var(--surface-hover);
}

.time-slot.disabled:hover {
    border-color: var(--border);
    background-color: var(--surface-hover);
}

/* === Stat Cards === */
.stat-card {
    padding: var(--spacing-md);
}

.stat-card-value {
    font-size: var(--font-size-2xl);
}

.stat-card-icon {
    width: 36px;
    height: 36px;
}

/* === Tables - Mobile Friendly === */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.table {
    min-width: 600px;
}

.table th,
.table td {
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

/* === Cards === */
.card {
    margin-bottom: var(--spacing-md);
}

.card-header,
.card-body,
.card-footer {
    padding: var(--spacing-md);
}

.card-title {
    font-size: var(--font-size-lg);
}

/* === Buttons === */
.btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
}

/* Button Groups - Stack on mobile */
.flex.gap-md {
    flex-wrap: wrap;
}

/* === Forms === */
.form-input,
.form-select,
.form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: var(--spacing-sm) var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

/* === Modal === */
.modal {
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    margin: var(--spacing-md);
}

.modal-header,
.modal-body,
.modal-footer {
    padding: var(--spacing-md);
}

.modal-footer {
    flex-direction: column;
    gap: var(--spacing-sm);
}

.modal-footer .btn {
    width: 100%;
}

/* === Footer === */
footer {
    padding: var(--spacing-xl) 0;
}

footer .row {
    flex-direction: column;
}

footer .col-12,
footer .col-md-4 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

footer h3,
footer h4 {
    font-size: var(--font-size-lg);
}

footer ul {
    text-align: center;
}

/* === Dashboard Specific === */
.dashboard-hero {
    padding: var(--spacing-xl) 0;
}

.dashboard-hero h1 {
    font-size: var(--font-size-xl);
}

.dashboard-hero-content {
    flex-direction: column;
    text-align: center;
}

/* === Authentication Pages === */
.auth-container {
    padding: var(--spacing-md);
}

.auth-card {
    max-width: 100%;
}

/* === Location Cards === */
.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.location-card {
    padding: var(--spacing-md);
}

/* === Pagination === */
.pagination {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

/* === Alerts === */
.alert {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

/* === Utility Classes Mobile === */
.hide-mobile {
    display: none !important;
}

.show-mobile {
    display: block !important;
}

.flex-column-mobile {
    flex-direction: column !important;
}

.text-center-mobile {
    text-align: center !important;
}

.w-full-mobile {
    width: 100% !important;
}

/* === CTA Section Mobile === */
.card.card-primary {
    padding: var(--spacing-xl) var(--spacing-md);
}

.card.card-primary h2 {
    font-size: var(--font-size-xl);
}

.card.card-primary p {
    font-size: var(--font-size-base);
}

/* === Admin Sidebar Mobile === */
.admin-layout {
    flex-direction: column;
}

.admin-sidebar {
    width: 100%;
    position: relative;
    height: auto;
    max-height: none;
}

.admin-content {
    margin-left: 0;
    width: 100%;
}

/* ===================================================================
   SMALL MOBILE (480px+)
   =================================================================== */

@media (min-width: 480px) {
    /* Grid - 2 columns for smaller items */
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Time slots */
    .time-slot-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hero buttons side by side */
    .hero .flex.gap-md {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero .btn-lg {
        width: auto;
    }

    /* Modal footer */
    .modal-footer {
        flex-direction: row;
    }

    .modal-footer .btn {
        width: auto;
    }
}

/* ===================================================================
   TABLET (768px+)
   =================================================================== */

@media (min-width: 768px) {
    /* Row Spacing */
    .row {
        margin: 0 calc(var(--spacing-md) * -1);
    }

    .col,
    .col-12 {
        padding: 0 var(--spacing-md);
    }

    /* Grid Columns */
    .col-md-1 { flex: 0 0 8.333%; max-width: 8.333%; }
    .col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
    .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333%; max-width: 83.333%; }
    .col-md-11 { flex: 0 0 91.666%; max-width: 91.666%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }

    /* Header */
    .header {
        padding: var(--spacing-md) 0;
    }

    .header-content {
        padding: 0 var(--spacing-md);
    }

    .logo {
        font-size: var(--font-size-xl);
    }

    .logo img {
        max-height: 44px;
    }

    /* Section Spacing */
    .section {
        padding: var(--spacing-2xl) 0;
    }

    .section-lg {
        padding: var(--spacing-3xl) 0;
    }

    /* Hero */
    .hero {
        padding: var(--spacing-3xl) 0;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Service Grid */
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .service-card-image {
        height: 200px;
    }

    .service-card-content {
        padding: var(--spacing-lg);
    }

    .service-card-title {
        font-size: var(--font-size-xl);
    }

    /* Staff Grid */
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .staff-avatar {
        width: 120px;
        height: 120px;
    }

    /* Location Grid */
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    /* Time Slot Grid */
    .time-slot-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Booking Steps */
    .booking-step {
        min-width: auto;
        flex: 1;
    }

    .booking-step-number {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }

    .booking-step-label {
        font-size: var(--font-size-xs);
    }

    /* Cards */
    .card-header,
    .card-body,
    .card-footer {
        padding: var(--spacing-lg);
    }

    .card-title {
        font-size: var(--font-size-xl);
    }

    /* Stat Cards */
    .stat-card {
        padding: var(--spacing-lg);
    }

    .stat-card-value {
        font-size: var(--font-size-3xl);
    }

    .stat-card-icon {
        width: 40px;
        height: 40px;
    }

    /* Tables */
    .table th,
    .table td {
        padding: var(--spacing-md);
        font-size: var(--font-size-base);
    }

    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
    }

    .btn-lg {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: var(--font-size-lg);
    }

    /* Footer */
    footer .row {
        flex-direction: row;
    }

    footer .col-12,
    footer .col-md-4 {
        text-align: left;
    }

    footer ul {
        text-align: left;
    }

    /* Dashboard */
    .dashboard-hero {
        padding: var(--spacing-2xl) 0;
    }

    .dashboard-hero h1 {
        font-size: var(--font-size-2xl);
    }

    .dashboard-hero-content {
        flex-direction: row;
        text-align: left;
    }

    /* Auth Pages */
    .auth-card {
        max-width: 450px;
    }

    /* Modal */
    .modal {
        max-width: 500px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--spacing-lg);
    }

    /* Utility Classes */
    .hide-tablet {
        display: none !important;
    }

    .show-tablet {
        display: block !important;
    }

    .hide-mobile {
        display: block !important;
    }
}

/* ===================================================================
   DESKTOP (992px+)
   =================================================================== */

@media (min-width: 992px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-header-actions {
        display: none !important;
    }

    .nav-menu {
        display: flex;
        align-items: center;
    }

    .nav-menu a {
        font-size: var(--font-size-base);
    }

    /* Grid Columns */
    .col-lg-1 { flex: 0 0 8.333%; max-width: 8.333%; }
    .col-lg-2 { flex: 0 0 16.666%; max-width: 16.666%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
    .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
    .col-lg-11 { flex: 0 0 91.666%; max-width: 91.666%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }

    /* Header */
    .header-content {
        padding: 0 var(--spacing-xl);
        gap: var(--spacing-xl);
    }

    /* Hero */
    .hero {
        padding: var(--spacing-4xl) 0;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    /* Service Grid */
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Staff Grid */
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Location Grid */
    .location-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Time Slot Grid */
    .time-slot-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Admin Layout */
    .admin-layout {
        flex-direction: row;
    }

    .admin-sidebar {
        width: var(--sidebar-width);
        position: fixed;
        height: 100vh;
    }

    .admin-content {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }

    /* Utility Classes */
    .hide-desktop {
        display: none !important;
    }

    .show-desktop {
        display: block !important;
    }
}

/* ===================================================================
   LARGE DESKTOP (1200px+)
   =================================================================== */

@media (min-width: 1200px) {
    /* Grid Columns */
    .col-xl-1 { flex: 0 0 8.333%; max-width: 8.333%; }
    .col-xl-2 { flex: 0 0 16.666%; max-width: 16.666%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-xl-5 { flex: 0 0 41.666%; max-width: 41.666%; }
    .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
    .col-xl-7 { flex: 0 0 58.333%; max-width: 58.333%; }
    .col-xl-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
    .col-xl-10 { flex: 0 0 83.333%; max-width: 83.333%; }
    .col-xl-11 { flex: 0 0 91.666%; max-width: 91.666%; }
    .col-xl-12 { flex: 0 0 100%; max-width: 100%; }

    /* Hero */
    .hero-title {
        font-size: var(--font-size-5xl);
    }

    /* Service Grid */
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Staff Grid */
    .staff-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Location Grid */
    .location-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Time Slot Grid */
    .time-slot-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ===================================================================
   EXTRA LARGE DESKTOP (1440px+)
   =================================================================== */

@media (min-width: 1440px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* ===================================================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   =================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-lg) 0;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .mobile-menu {
        padding: var(--spacing-md);
    }

    .mobile-menu-list {
        margin: var(--spacing-md) 0;
    }

    .mobile-menu-list a {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* ===================================================================
   HIGH DPI / RETINA DISPLAYS
   =================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp borders */
    .card,
    .btn,
    .form-input,
    .form-select,
    .form-textarea {
        border-width: 1px;
    }
}

/* ===================================================================
   DARK MODE SUPPORT (respects system preference)
   =================================================================== */

@media (prefers-color-scheme: dark) {
    /* Add dark mode variables here if needed */
}

/* ===================================================================
   REDUCED MOTION (accessibility)
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */

@media print {
    .header,
    .mobile-menu,
    .mobile-menu-toggle,
    .btn,
    .no-print,
    footer {
        display: none !important;
    }

    .main-content {
        margin-top: 0;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        background: white;
        color: black;
    }

    .card {
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}
