/* Abba Online Academy - Main Stylesheet */

/* CSS Variables */
:root {
    --radius: 0.5rem;
    --background: #faf5f0;
    --foreground: #2a2545;
    --card: #ffffff;
    --card-foreground: #2a2545;
    --popover: #ffffff;
    --popover-foreground: #2a2545;
    --primary: #332d4a;
    --primary-foreground: #faf5f0;
    --secondary: #f0ebe0;
    --secondary-foreground: #332d4a;
    --muted: #f2ede5;
    --muted-foreground: #6b6280;
    --accent: #ebe5d5;
    --accent-foreground: #332d4a;
    --gold: #c5a84a;
    --gold-foreground: #2a2545;
    --border: #dfdcd2;
    --input: #e5e2d8;
    --ring: #c5a84a;
    --gradient-hero: linear-gradient(135deg, #332d4a 0%, #453d65 60%, #6b5d8a 100%);
    --gradient-gold: linear-gradient(135deg, #d4b85a, #b89840);
}

/* Reset & Base */
* { 
    border-color: var(--border); 
    box-sizing: border-box; 
}
html { 
    scroll-behavior: smooth; 
}
body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    min-height: 100vh;
}
h1, h2, h3, h4 {
    font-family: 'Fraunces', ui-serif, Georgia, serif;
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* Layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.self-start { align-self: flex-start; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-2 { row-gap: 0.5rem; }
.gap-y-4 { row-gap: 1rem; }

/* Spacing */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-5 { padding-top: 1.25rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-20 { padding-bottom: 5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-24 { margin-top: 6rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-3 { margin-left: 0.75rem; }
.mr-3 { margin-right: 0.75rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.5rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-display { font-family: 'Fraunces', ui-serif, Georgia, serif; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }
.italic { font-style: italic; }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.break-all { word-break: break-all; }

/* Colors */
.text-gold { color: var(--gold); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-destructive { color: #8b3030; }
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-gold { background-color: var(--gold); }
.border-border { border-color: var(--border); }

/* Background with opacity helpers */
.bg-primary-foreground-10 { background-color: rgba(250, 245, 240, 0.1); }
.bg-primary-foreground-15 { background-color: rgba(250, 245, 240, 0.15); }
.bg-primary-foreground-20 { background-color: rgba(250, 245, 240, 0.2); }
.bg-primary-foreground-30 { background-color: rgba(250, 245, 240, 0.3); }
.text-primary-foreground-60 { color: rgba(250, 245, 240, 0.6); }
.text-primary-foreground-70 { color: rgba(250, 245, 240, 0.7); }
.text-primary-foreground-80 { color: rgba(250, 245, 240, 0.8); }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }

/* Border Radius */
.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-elegant { box-shadow: 0 20px 50px -20px rgba(42, 37, 69, 0.35); }
.shadow-soft { box-shadow: 0 8px 24px -12px rgba(42, 37, 69, 0.18); }

/* Backgrounds */
.bg-hero { background: var(--gradient-hero); }
.bg-gold-gradient { background: var(--gradient-gold); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-40 { z-index: 40; }
.overflow-hidden { overflow: hidden; }

/* Dimensions */
.w-full { width: 100%; }
.h-auto { height: auto; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-1-5 { width: 0.375rem; }
.h-1-5 { height: 0.375rem; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.object-cover { object-fit: cover; }

/* Effects */
.opacity-20 { opacity: 0.2; }
.mix-blend-overlay { mix-blend-mode: overlay; }
.blur-2xl { filter: blur(40px); }
.blur-3xl { filter: blur(64px); }

/* Transitions */
.transition-transform { transition: transform 0.2s ease; }
.hover-translate-y-0-5:hover { transform: translateY(-0.125rem); }
.hover-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover-text-gold:hover { color: var(--gold); }
.hover-text-foreground:hover { color: var(--foreground); }
.hover-bg-muted:hover { background-color: var(--muted); }
.hover-bg-primary-foreground-10:hover { background-color: rgba(250, 245, 240, 0.1); }
.hover-bg-primary-foreground-15:hover { background-color: rgba(250, 245, 240, 0.15); }

/* Col-span */
.col-span-2 { grid-column: span 2 / span 2; }

/* Forms */
input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--input);
    border-radius: 0.375rem;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    font-family: inherit;
    transition: outline 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}
textarea { resize: vertical; min-height: 100px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: transform 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.btn:hover { transform: translateY(-0.125rem); }
.btn-primary { background-color: var(--primary); color: var(--primary-foreground); }
.btn-gold { background-color: var(--gold); color: var(--gold-foreground); }
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--primary-foreground);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Special */
[class*="hover-translate"] { transition: transform 0.2s ease; }
a[class*="hover-translate"]:hover { transform: translateY(-0.125rem); }

/* Responsive - Tablet and up */
@media (min-width: 768px) {
    .md-flex { display: flex; }
    .md-hidden { display: none !important; }
    .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md-col-span-2 { grid-column: span 2 / span 2; }
    .md-flex-row { flex-direction: row; }
    .md-text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md-text-5xl { font-size: 3rem; line-height: 1; }
    .md-text-6xl { font-size: 3.75rem; line-height: 1; }
    .md-p-14 { padding: 3.5rem; }
    .md-p-16 { padding: 4rem; }
    .md-py-28 { padding-top: 7rem; padding-bottom: 7rem; }
    .md-py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

/* Responsive - Desktop and up */
@media (min-width: 1024px) {
    .lg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg-col-span-2 { grid-column: span 2 / span 2; }
    .lg-col-span-3 { grid-column: span 3 / span 3; }
}

/* Hero specific */
.hero-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    mix-blend-mode: overlay;
    background-image: radial-gradient(circle at 20% 20%, rgba(197, 168, 74, 0.5), transparent 40%), radial-gradient(circle at 80% 70%, rgba(107, 93, 138, 0.4), transparent 45%);
}
.glow-bg {
    position: absolute;
    top: -1rem;
    right: -1rem;
    bottom: -1rem;
    left: -1rem;
    border-radius: 1rem;
    background-color: rgba(197, 168, 74, 0.3);
    filter: blur(40px);
}
.glow-circle {
    position: absolute;
    top: -5rem;
    right: -5rem;
    height: 16rem;
    width: 16rem;
    border-radius: 9999px;
    background-color: rgba(197, 168, 74, 0.3);
    filter: blur(64px);
}

/* Admin Dashboard */
.header { background: #332d4a; color: white; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 1.25rem; margin: 0; }
.header a { color: #c5a84a; text-decoration: none; font-size: 0.875rem; }
.header a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; }
.message { background: #d4edda; color: #155724; padding: 1rem; border-radius: 0.375rem; margin-bottom: 1rem; }
.nav-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; border-bottom: 2px solid #ddd; }
.tab { padding: 0.75rem 1.5rem; cursor: pointer; border: none; background: none; font-size: 0.875rem; font-weight: 500; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active { color: #332d4a; border-bottom-color: #c5a84a; }
.card { background: white; border-radius: 1rem; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 8px 24px -12px rgba(42, 37, 69, 0.18); }
.card h2 { font-size: 1.25rem; margin-bottom: 1.5rem; color: #2a2545; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #666; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid #ddd; border-radius: 0.375rem; font-size: 0.875rem; font-family: inherit; }
.form-group textarea { min-height: 100px; resize: vertical; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
