/* Aeris Luxury Theme - Core Styles */

/* ========================================
   CSS VARIABLES & ROOT STYLES
======================================== */


:root {
    /* Luxury Color Palette - Rich, sophisticated tones */
    --aeris-primary: #1a1a2e;
    --aeris-primary-dark: #0f0f1a;
    --aeris-secondary: #16213e;
    --aeris-secondary-dark: #0e1627;
    --aeris-accent: #e94560;
    --aeris-accent-light: #ff6b8a;
    --aeris-success: #00d4aa;
    --aeris-warning: #ffab00;
    --aeris-error: #ff5722;
    
    /* Luxury specific colors */
    --aeris-gold: #d4af37;
    --aeris-gold-light: #f4e4a6;
    --aeris-platinum: #e5e4e2;
    --aeris-charcoal: #36454f;
    --aeris-marble: #f8f8ff;
    --aeris-champagne: #f7e7ce;
    
    /* Luxury glass morphism variables */
    --glass-bg: rgba(248, 248, 255, 0.85);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(26, 26, 46, 0.15);
    --glass-luxury: rgba(247, 231, 206, 0.3);
    --glass-gold: rgba(212, 175, 55, 0.1);
    
    /* Animation timing */
    --transition-fast: 150ms;
    --transition-normal: 300ms;
    --transition-slow: 500ms;
    
    /* Header heights */
    --header-height-mobile: 4rem;
    --header-height-desktop: 5rem;
}

/* ========================================
   GLOBAL BASE STYLES
======================================== */
* {
    box-sizing: border-box;
}

/* Only remove transforms from Alpine.js elements */
[x-transition] {
    transform: none !important;
}

html {
    scroll-behavior: auto !important;
    font-feature-settings: 'kern' 1;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', 'Cormorant Garamond', 'Georgia', serif;
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.03) 0%, rgba(212, 175, 55, 0.02) 50%, rgba(247, 231, 206, 0.05) 100%),
                linear-gradient(45deg, var(--aeris-marble) 0%, var(--aeris-champagne) 30%, #ffffff  70%, var(--aeris-platinum) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* ========================================
   SCROLL BEHAVIOR & ANCHOR NAVIGATION
======================================== */
section[id], 
.anchor-section,
[id] {
    scroll-margin-top: calc(var(--header-height-mobile) + 20px);
}

@media (min-width: 1024px) {
    section[id], 
    .anchor-section,
    [id] {
        scroll-margin-top: calc(var(--header-height-desktop) + 20px);
    }
}

/* ========================================
   GLASS MORPHISM UTILITIES
======================================== */
.aeris-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.aeris-glass-dark {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.aeris-glass-strong {
    background: rgba(248, 248, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.aeris-glass-luxury {
    background: var(--glass-luxury);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.aeris-glass-gold {
    background: var(--glass-gold);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 8px 32px 0 rgba(212, 175, 55, 0.15);
}

/* ========================================
   GRADIENT UTILITIES
======================================== */
.aeris-gradient-primary {
    background: linear-gradient(135deg, var(--aeris-primary) 0%, var(--aeris-secondary) 100%);
}

.aeris-gradient-luxury {
    background: linear-gradient(135deg, var(--aeris-gold) 0%, var(--aeris-gold-light) 50%, var(--aeris-champagne) 100%);
}

.aeris-gradient-accent {
    background: linear-gradient(135deg, var(--aeris-accent) 0%, var(--aeris-accent-light) 100%);
}

.aeris-gradient-platinum {
    background: linear-gradient(135deg, var(--aeris-platinum) 0%, var(--aeris-marble) 50%, #ffffff 100%);
}

.aeris-gradient-charcoal {
    background: linear-gradient(135deg, var(--aeris-charcoal) 0%, var(--aeris-primary) 100%);
}

.aeris-gradient-warm {
    background: linear-gradient(135deg, var(--aeris-warning) 0%, var(--aeris-error) 100%);
}

.aeris-gradient-cool {
    background: linear-gradient(135deg, var(--aeris-success) 0%, var(--aeris-primary) 100%);
}

.aeris-text-gradient {
    background: linear-gradient(135deg, var(--aeris-primary) 0%, var(--aeris-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aeris-text-gradient-luxury {
    background: linear-gradient(135deg, var(--aeris-gold) 0%, var(--aeris-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aeris-text-gradient-accent {
    background: linear-gradient(135deg, var(--aeris-accent) 0%, var(--aeris-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SHADOW UTILITIES
======================================== */
.aeris-shadow-soft {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.aeris-shadow-medium {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.aeris-shadow-large {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.aeris-shadow-glow {
    box-shadow: 0 0 20px rgba(26, 26, 46, 0.15);
}

.aeris-shadow-glow-luxury {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25), 0 0 40px rgba(212, 175, 55, 0.1);
}

.aeris-shadow-glow-accent {
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
}

.aeris-shadow-luxury {
    box-shadow: 0 25px 50px -12px rgba(26, 26, 46, 0.15), 
                0 10px 25px -5px rgba(212, 175, 55, 0.1);
}

.aeris-shadow-premium {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25),
                0 18px 36px -18px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========================================
   BUTTON STYLES
======================================== */
.aeris-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    text-decoration: none;
    font-weight: 500;
    border-radius: 9999px;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform: translateY(0);
}

.aeris-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.aeris-btn-primary {
    background: linear-gradient(135deg, var(--aeris-primary), var(--aeris-primary-dark));
    color: var(--aeris-gold-light);
    position: relative;
    overflow: hidden;
}

.aeris-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s;
}

.aeris-btn-primary:hover::before {
    left: 100%;
}

.aeris-btn-primary:hover {
    background: linear-gradient(135deg, var(--aeris-primary-dark), var(--aeris-secondary-dark));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(212, 175, 55, 0.3);
}

.aeris-btn-luxury {
    background: linear-gradient(135deg, var(--aeris-gold), var(--aeris-gold-light));
    color: var(--aeris-primary);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.aeris-btn-luxury:hover {
    background: linear-gradient(135deg, var(--aeris-gold-light), var(--aeris-champagne));
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.aeris-btn-secondary {
    background: var(--glass-luxury);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--aeris-primary);
}

.aeris-btn-ghost {
    background: transparent;
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: var(--aeris-gold);
}

.aeris-btn-accent {
    background: linear-gradient(135deg, var(--aeris-accent), var(--aeris-accent-light));
    color: white;
}

/* ========================================
   FORM ELEMENTS
======================================== */
.aeris-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    transition: all var(--transition-normal);
    font-family: inherit;
    color: var(--aeris-primary);
}

.aeris-input:focus {
    outline: none;
    border-color: var(--aeris-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(20px);
    background: var(--glass-luxury);
}

.aeris-textarea {
    resize: vertical;
    min-height: 120px;
}

.aeris-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ========================================
   CARD STYLES
======================================== */
.aeris-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.aeris-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aeris-gold), transparent);
    opacity: 0.5;
}

.aeris-card-luxury {
    background: var(--glass-luxury);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--aeris-shadow-luxury);
}

.aeris-card-premium {
    background: linear-gradient(135deg, var(--glass-bg) 0%, var(--glass-luxury) 100%);
    border: 1px solid var(--aeris-gold);
    box-shadow: var(--aeris-shadow-premium);
}

.aeris-card-hover {
    cursor: pointer;
}

.aeris-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--aeris-shadow-luxury);
}

.aeris-card-luxury:hover {
    transform: translateY(-6px);
    box-shadow: var(--aeris-shadow-premium);
    border-color: var(--aeris-gold);
}

.aeris-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.3),
                0 25px 50px -15px rgba(212, 175, 55, 0.4);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes aeris-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes aeris-fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes aeris-slideInRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes aeris-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes aeris-pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes aeris-fadeOut {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

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

.aeris-float-delayed {
    animation: aeris-float 6s ease-in-out infinite 2s;
}

.aeris-animate-in {
    animation: aeris-fadeInUp 0.8s ease-out;
}

.aeris-animate-slide-in {
    animation: aeris-slideInRight 0.6s ease-out;
}

.aeris-pulse-slow {
    animation: aeris-pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Loading states */
.aeris-loading {
    position: relative;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.7;
}

.aeris-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: aeris-shimmer 1.5s infinite;
    z-index: 1;
}

/* ========================================
   TYPOGRAPHY
======================================== */
.aeris-heading {
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--aeris-primary);
}

.aeris-heading-luxury {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--aeris-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.aeris-heading-accent {
    color: var(--aeris-accent);
    font-weight: 500;
}

.aeris-heading-lg {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.aeris-heading-md {
    font-size: clamp(2rem, 4vw, 3rem);
}

.aeris-heading-sm {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.aeris-body-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.aeris-body {
    font-size: 1rem;
    line-height: 1.6;
}

.aeris-body-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ========================================
   PROSE STYLING (CONSOLIDATED)
======================================== */
.prose {
    color: var(--aeris-charcoal);
    max-width: none;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.prose-xl {
    font-size: 1.25rem;
    line-height: 1.8;
}

.prose-gray {
    color: #374151;
}

.prose h1, 
.prose h2, 
.prose h3, 
.prose h4, 
.prose h5, 
.prose h6 {
    color: var(--aeris-primary);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-top: 0;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.prose h1 { 
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.prose h2 { 
    font-size: 1.875rem;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.prose h3 { 
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.prose h4 { 
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    font-weight: 500;
}

.prose h5 { 
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.prose h6 { 
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prose p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
}

.prose ul, 
.prose ol {
    color: #4b5563;
    margin-bottom: 1.25rem;
    padding-left: 1.625rem;
}

.prose ul {
    list-style-type: none;
    position: relative;
}

.prose ul > li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.prose ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8125rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: var(--aeris-gold);
}

.prose ol {
    counter-reset: list-counter;
}

.prose ol > li {
    position: relative;
    counter-increment: list-counter;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.prose ol > li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--aeris-gold);
    font-weight: 600;
    font-size: 0.875rem;
}

.prose ul ul, 
.prose ul ol, 
.prose ol ul, 
.prose ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.prose ul ul > li::before {
    background-color: #6b7280;
    width: 0.25rem;
    height: 0.25rem;
}

.prose strong {
    color: #1f2937;
    font-weight: 600;
}

.prose em {
    color: #4b5563;
    font-style: italic;
}

.prose mark {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

.prose small {
    font-size: 0.875rem;
    color: #6b7280;
}

.prose a {
    color: var(--aeris-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    border-bottom: 1px solid transparent;
}

.prose a:hover {
    color: var(--aeris-accent-light);
    border-bottom-color: var(--aeris-gold);
}

.prose a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.125rem;
}

.prose blockquote {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    position: relative;
}

.prose blockquote::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: -0.5rem;
    font-size: 3rem;
    color: #3b82f6;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.prose blockquote p {
    color: inherit;
    margin-bottom: 0;
}

.prose blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: normal;
}

.prose blockquote cite::before {
    content: '— ';
}

.prose code {
    background: #f3f4f6;
    color: #1f2937;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 500;
}

.prose pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.7;
}

.prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d1d5db, transparent);
    margin: 2rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.prose thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.prose th {
    border: 1px solid #e5e7eb;
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prose td {
    border: 1px solid #e5e7eb;
    padding: 0.875rem 1rem;
    color: #4b5563;
    line-height: 1.5;
}

.prose tbody tr:nth-child(even) {
    background: #f9fafb;
}

.prose tbody tr:hover {
    background: #f3f4f6;
}

.prose img {
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.prose figure {
    margin: 1.5rem 0;
}

.prose figcaption {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

.prose video {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.prose dl {
    margin: 1.5rem 0;
}

.prose dt {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.prose dd {
    color: #4b5563;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
}

.prose address {
    color: #4b5563;
    font-style: normal;
    line-height: 1.75;
    margin: 1.5rem 0;
}

.prose kbd {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    font-family: inherit;
    color: #374151;
    box-shadow: inset 0 -1px 0 #d1d5db;
}

.prose .callout {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.prose .callout.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: #3b82f6;
}

.prose .callout.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: #10b981;
}

.prose .callout.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
}

.prose .callout.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: #ef4444;
}

.prose .property-highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.prose .property-feature {
    display: flex;
    align-items: flex-start;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.prose .property-feature::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .prose {
        font-size: 1rem;
    }
    
    .prose h1 { font-size: 1.875rem; }
    .prose h2 { font-size: 1.5rem; }
    .prose h3 { font-size: 1.25rem; }
    .prose h4 { font-size: 1.125rem; }
    .prose h5 { font-size: 1rem; }
    .prose h6 { font-size: 0.875rem; }
    
    .prose blockquote {
        margin-left: 0;
        margin-right: 0;
        padding: 1rem;
    }
    
    .prose table {
        font-size: 0.875rem;
    }
    
    .prose th,
    .prose td {
        padding: 0.5rem 0.75rem;
    }
}

@media (prefers-color-scheme: dark) {
    .prose {
        color: #d1d5db;
    }
    
    .prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
        color: #f9fafb;
    }
    
    .prose p {
        color: #d1d5db;
    }
    
    .prose strong {
        color: #f9fafb;
    }
    
    .prose a {
        color: #60a5fa;
    }
    
    .prose a:hover {
        color: #93c5fd;
    }
    
    .prose code {
        background: #374151;
        color: #f9fafb;
    }
    
    .prose blockquote {
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
        color: #dbeafe;
        border-left-color: #60a5fa;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--aeris-primary), var(--aeris-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--aeris-primary-dark), var(--aeris-secondary-dark));
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--aeris-primary) #f1f5f9;
}

/* ========================================
   TEXT SELECTION
======================================== */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: inherit;
}

/* ========================================
   FOCUS STYLES
======================================== */
:focus-visible {
    outline: 2px solid var(--aeris-primary);
    outline-offset: 2px;
}

.aeris-focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========================================
   UTILITY CLASSES
======================================== */
.aeris-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aeris-hover-lift {
    transition: all var(--transition-normal);
}

.aeris-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.aeris-hover-scale {
    transition: all var(--transition-normal);
}

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

/* ========================================
   RESPONSIVE UTILITIES
======================================== */
@media (max-width: 640px) {
    .aeris-mobile-full {
        width: 100%;
        border-radius: 0;
    }
    
    .aeris-mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .aeris-no-print {
        display: none !important;
    }
    
    .aeris-print-only {
        display: block !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ========================================
   HIGH CONTRAST MODE SUPPORT
======================================== */
@media (prefers-contrast: high) {
    .aeris-glass,
    .aeris-glass-dark,
    .aeris-glass-strong {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 2px solid #000 !important;
    }
}

/* ========================================
   REDUCED MOTION SUPPORT
======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
    
    a[href^="#"] {
        scroll-behavior: smooth !important;
    }
}

/* ========================================
   ASPECT RATIOS (for older browser support)
======================================== */
.aeris-aspect-video {
    position: relative;
    padding-bottom: 56.25%;
}

.aeris-aspect-square {
    position: relative;
    padding-bottom: 100%;
}

.aeris-aspect-photo {
    position: relative;
    padding-bottom: 75%;
}

.aeris-aspect-video > *,
.aeris-aspect-square > *,
.aeris-aspect-photo > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    object-fit: cover;
}
