/* ============================================
   GLOBAL.CSS - ETCH Design System
   Shared across all public pages
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    /* Brand Colors */
    --color-primary: #99A96A;
    --color-primary-dark: #73824C;
    --color-primary-light: #E8ECD9;

    /* Neutrals */
    --color-background: #FAFAF7;
    --color-surface: #F2F3ED;
    --color-surface-elevated: #FFFFFF;
    --color-text: #151515;
    --color-text-secondary: #6C6C6C;
    --color-text-muted: #9A9A9A;
    --color-border: #E5E7E2;

    /* Semantic */
    --color-success: #3D6B4F;
    --color-success-bg: #EEF7F0;
    --color-warning: #C9A54C;
    --color-warning-bg: #FFF8E7;
    --color-error: #B25555;
    --color-error-bg: #FBEDED;
    --color-info: #5B8DEF;
    --color-info-bg: #EEF4FF;

    /* Typography */
    --font-display: 'Instrument Serif', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Dark Mode Variables */
html.dark {
    --color-background: #0A0A0A;
    --color-surface: #1A1A1A;
    --color-surface-elevated: #2A2A2A;
    --color-text: #FFFFFF;
    --color-text-secondary: #8A8A8A;
    --color-text-muted: #6A6A6A;
    --color-border: #3A3A3A;
}

html.dark body {
    background-color: var(--color-background);
    color: var(--color-text);
}

html.dark .bg-white {
    background-color: var(--color-surface-elevated) !important;
}

html.dark .bg-white\/80,
html.dark .bg-white\/90,
html.dark .bg-white\/60,
html.dark .bg-white\/5 {
    background-color: rgba(26, 26, 26, 0.82) !important;
}

html.dark .bg-stone {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

html.dark .bg-mist {
    background-color: #121212 !important;
}

html.dark .bg-cream {
    background-color: #171717 !important;
}

html.dark .bg-ivory {
    background-color: rgba(18, 18, 18, 0.92) !important;
}

html.dark .bg-gold {
    background-color: rgba(201, 165, 76, 0.12) !important;
}

html.dark .bg-slate\/2,
html.dark .bg-slate\/5,
html.dark .bg-slate\/15,
html.dark .bg-slate\/25,
html.dark .bg-slate\/50,
html.dark .bg-slate\/60 {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

html.dark .text-charcoal,
html.dark .text-ink,
html.dark .text-ink\/*,
html.dark .text-ink\/80,
html.dark .text-ink\/70 {
    color: var(--color-text) !important;
}

html.dark .text-slate,
html.dark .text-slate\/60,
html.dark .text-slate\/70,
html.dark .text-slate\/80,
html.dark .text-slate\/40,
html.dark .text-slate\/50,
html.dark .text-slate\/* {
    color: var(--color-text-secondary) !important;
}

html.dark .border-border,
html.dark .border-border\/60,
html.dark .border-border\/40,
html.dark .border-border\/50,
html.dark .border-border\/10,
html.dark .border-slate\/15,
html.dark .border-slate\/25 {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark .shadow-2xl,
html.dark .shadow-xl,
html.dark .shadow-lg {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.32) !important;
}

html.dark .bg-gradient-to-b,
html.dark .bg-gradient-to-br,
html.dark .bg-gradient-to-r,
html.dark .bg-gradient-to-l,
html.dark .bg-gradient-to-tr,
html.dark .bg-gradient-to-tl {
    background-image: linear-gradient(to bottom, rgba(18, 18, 18, 0.96), rgba(10, 10, 10, 0.96)) !important;
}

html.dark .bg-gradient-to-b.from-slate\/5 {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(18, 18, 18, 0.98)) !important;
}

html.dark .text-olive {
    color: #b7d37b !important;
}

html.dark .bg-olive\/10,
html.dark .bg-olive\/5 {
    background-color: rgba(153, 169, 106, 0.12) !important;
}

.sponsor-strip {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(21, 21, 21, 0.08);
    border-bottom: 1px solid rgba(21, 21, 21, 0.08);
    background: linear-gradient(90deg, #f0f2e7 0%, #e9efd5 50%, #f0f2e7 100%);
}

html.dark .sponsor-strip {
    background: linear-gradient(90deg, #111111 0%, #1b1b1b 50%, #111111 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.sponsor-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.sponsor-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    gap: 1rem;
    padding: 1rem 0;
    animation: sponsor-scroll 26s linear infinite;
}

.sponsor-track span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 0.9rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(21, 21, 21, 0.08);
    background: rgba(255, 255, 255, 0.35);
    color: #1a1a1a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

html.dark .sponsor-track span {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f3f3f3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.newsletter-panel,
.newsletter-modal-panel {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html.dark .newsletter-panel {
    background: rgba(18, 20, 18, 0.98) !important;
    color: #f4f6ef !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45) !important;
}

html.dark .newsletter-panel h3,
html.dark .newsletter-panel h2,
html.dark .newsletter-panel p,
html.dark .newsletter-panel label,
html.dark .newsletter-panel span,
html.dark .newsletter-panel a,
html.dark .newsletter-panel input,
html.dark .newsletter-panel button {
    color: inherit !important;
}

html.dark .newsletter-panel input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f5f5f2 !important;
}

html.dark .newsletter-panel input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

html.dark .newsletter-panel .text-slate\/60,
html.dark .newsletter-panel .text-slate\/70,
html.dark .newsletter-panel .text-slate\/50,
html.dark .newsletter-panel .text-slate\/40 {
    color: rgba(255, 255, 255, 0.68) !important;
}

html.dark .newsletter-modal-panel {
    background: rgba(22, 22, 22, 0.98) !important;
    color: #fafaf5 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42) !important;
}

html.dark .newsletter-modal-panel h3,
html.dark .newsletter-modal-panel p,
html.dark .newsletter-modal-panel label,
html.dark .newsletter-modal-panel span,
html.dark .newsletter-modal-panel a,
html.dark .newsletter-modal-panel input,
html.dark .newsletter-modal-panel button {
    color: inherit !important;
}

html.dark .newsletter-modal-panel input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f5f5f2 !important;
}

html.dark .newsletter-modal-panel input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

html.dark #closeNewsletterModal {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

html.dark #newsletterModalStatus,
html.dark #landingNewsletterStatus {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   DARK MODE: GLOBAL SAFETY NET
   Ensures base utility classes degrade gracefully
   in dark mode when individual elements lack
   explicit dark: variants.
   ============================================ */

/* Background: white → dark surface */
html.dark .bg-white {
    background-color: rgba(26, 26, 26, 0.98) !important;
}

html.dark .bg-white\/50 {
    background-color: rgba(26, 26, 26, 0.5) !important;
}

html.dark .bg-white\/80 {
    background-color: rgba(26, 26, 26, 0.8) !important;
}

html.dark .bg-white\/85 {
    background-color: rgba(26, 26, 26, 0.85) !important;
}

html.dark .bg-white\/90 {
    background-color: rgba(26, 26, 26, 0.9) !important;
}

/* Border: border-border → dark border */
html.dark .border-border,
html.dark .border {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Text: slate → readable gray in dark mode */
html.dark .text-slate {
    color: #8a8a8a !important;
}
html.dark .text-slate\/70 {
    color: rgba(138, 138, 138, 0.72) !important;
}
html.dark .text-slate\/60 {
    color: rgba(138, 138, 138, 0.62) !important;
}
html.dark .text-slate\/50 {
    color: rgba(138, 138, 138, 0.52) !important;
}
html.dark .text-slate\/40 {
    color: rgba(138, 138, 138, 0.42) !important;
}

/* Shadows: lighten dark-mode box-shadows for better visibility */
html.dark .shadow-\[0_20px_50px_rgba\(21,21,21,0\.06\)\] {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
}
html.dark .shadow-\[0_12px_32px_rgba\(21,21,21,0\.04\)\] {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
}
html.dark .shadow-\[0_25px_60px_rgba\(0,0,0,0\.35\)\] {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
}
html.dark .shadow-\[0_30px_80px_rgba\(21,21,21,0\.25\)\] {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4) !important;
}
html.dark .shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Gradients: dark mode overrides for light-heavy gradients */
html.dark .bg-gradient-to-br\.from-olive\/10\.via-white\.to-lavender\/10 {
    background-image: linear-gradient(135deg, rgba(153, 169, 106, 0.12) 0%, rgba(26, 26, 26, 0.9) 50%, rgba(167, 139, 255, 0.1) 100%) !important;
}

/* Newsletter Modal dark-mode background */
html.dark #newsletterModal .newsletter-modal-panel,
html.dark .newsletter-modal-panel {
    background: rgba(22, 22, 22, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Close button in modal */
html.dark #closeNewsletterModal {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

html.dark #closeNewsletterModal:hover {
    background: rgba(153, 169, 106, 0.12) !important;
    border-color: rgba(153, 169, 106, 0.3) !important;
    color: #99A96A !important;
}

@keyframes sponsor-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
.font-display {
    font-family: var(--font-display);
}

.font-body {
    font-family: var(--font-body);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
}

/* ============================================
   4. SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ============================================
   5. UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Line Clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   6. COMPONENT: BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(153, 169, 106, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--color-text);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-ghost:hover {
    background: var(--color-surface);
}

/* ============================================
   7. COMPONENT: CARDS
   ============================================ */
.card {
    background: var(--color-surface-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: var(--space-lg);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.card-title a:hover {
    color: var(--color-primary);
}

.card-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   8. COMPONENT: BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.badge-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.badge-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.badge-error {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.badge-info {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.badge-dark {
    background: var(--color-text);
    color: #FFFFFF;
}

/* ============================================
   9. COMPONENT: FORMS
   ============================================ */
.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(153, 169, 106, 0.2);
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.form-label .required {
    color: var(--color-error);
}

/* ============================================
   10. COMPONENT: AVATAR
   ============================================ */
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    flex-shrink: 0;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.avatar-lg {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
}

.avatar-xl {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.5rem;
}

.avatar-image {
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* ============================================
   11. COMPONENT: PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-button {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination-button:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.pagination-button.active {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}

.pagination-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   12. COMPONENT: SEARCH
   ============================================ */
.search-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.search-input:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(153, 169, 106, 0.2);
}

.search-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: var(--color-text);
}

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

.search-input .shortcut {
    font-size: 0.625rem;
    color: var(--color-text-muted);
    background: var(--color-surface-elevated);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

/* ============================================
   13. COMPONENT: THEME TOGGLE
   ============================================ */
.theme-toggle {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

/* ============================================
   14. COMPONENT: MOBILE MENU
   ============================================ */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    width: 100%;
    background: var(--color-surface-elevated);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 1rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-text);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition-fast);
}

.mobile-menu-link:hover {
    color: var(--color-primary);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}


.mobile-menu-link:hover {
    color: var(--color-primary);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* ============================================
   15. COMPONENT: SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(90deg,
            var(--color-surface) 25%,
            var(--color-border) 50%,
            var(--color-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ============================================
   16. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   17. DARK MODE OVERRIDES
   ============================================ */
html.dark .card {
    background: var(--color-surface-elevated);
    border-color: var(--color-border);
}

html.dark .card:hover {
    border-color: var(--color-primary);
}

html.dark .search-input {
    background: var(--color-surface);
    border-color: var(--color-border);
}

html.dark .search-input input {
    color: var(--color-text);
}

html.dark input,
html.dark textarea,
html.dark select,
html.dark .form-input,
html.dark .search-input input {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--color-text) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #9CA3AF !important;
}

html.dark .pagination-button {
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

html.dark .pagination-button:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

html.dark .badge-dark {
    background: var(--color-text);
    color: #FFFFFF;
}

/* ============================================
   18. RESPONSIVE HELPERS
   ============================================ */
@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ============================================
   19. PRINT STYLES
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
}