/* ============================================
   MEITHEAL ELEGANT THEME — v2
   Classic, modern, catchy polish layer.
   Colors pulled from the actual logo:
   Teal #0d4d40 · Copper #c96f3e · Deep Brown #2b1810
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Playfair+Display:wght@600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --teal: #0d4d40;
    --teal-dark: #093a30;
    --copper: #c96f3e;
    --copper-light: #e0925f;
    --brown: #2b1810;
    --cream: #faf7f2;
}

/* ---- Elegant headline treatment ---- */
h1, h2, h3 {
    font-family: 'Playfair Display', serif !important;
    letter-spacing: -0.02em;
}

h1 {
    background: linear-gradient(120deg, var(--teal) 0%, var(--brown) 55%, var(--copper) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

/* Signature underline accent — the "catchy" detail */
.elegant-heading-accent {
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 0.75rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--copper) 100%);
}

.elegant-heading-accent.centered {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Refined premium cards ---- */
.premium-card, .glass-card, .settings-card, .stat-box, .message-card, .category-card {
    border-radius: 1.5rem !important;
    box-shadow: 0 1px 2px rgba(43, 24, 16, 0.04), 0 12px 32px rgba(43, 24, 16, 0.07) !important;
    border: 1px solid rgba(13, 77, 64, 0.08) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-card:hover, .message-card:hover, .category-card:hover {
    box-shadow: 0 4px 12px rgba(43, 24, 16, 0.06), 0 20px 48px rgba(13, 77, 64, 0.12) !important;
    border-color: rgba(201, 111, 62, 0.25) !important;
}

/* Subtle copper-teal left accent on cards — catches the eye without breaking glass blur or rounded corners */
.premium-card, .settings-card {
    box-shadow: inset 3px 0 0 0 var(--teal),
                0 1px 2px rgba(43, 24, 16, 0.04), 0 12px 32px rgba(43, 24, 16, 0.07) !important;
}

.premium-card:hover, .settings-card:hover {
    box-shadow: inset 3px 0 0 0 var(--copper),
                0 4px 12px rgba(43, 24, 16, 0.06), 0 20px 48px rgba(13, 77, 64, 0.12) !important;
}

/* ---- Refined buttons ---- */
.premium-btn, button[type="submit"], .bg-gradient-to-r.from-\[\#07290c\] {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%) !important;
    box-shadow: 0 1px 2px rgba(9, 58, 48, 0.2), 0 8px 24px rgba(9, 58, 48, 0.18) !important;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.premium-btn::after, button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.premium-btn:hover::after, button[type="submit"]:hover::after {
    left: 100%;
}

/* ---- Elegant badges / category tags ---- */
.category-badge, .badge {
    background: linear-gradient(135deg, rgba(13, 77, 64, 0.1) 0%, rgba(201, 111, 62, 0.12) 100%) !important;
    border: 1px solid rgba(201, 111, 62, 0.25) !important;
    color: var(--teal-dark) !important;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.7rem !important;
}

/* ---- Elegant avatar circles: teal-to-copper instead of flat green ---- */
.bg-gradient-to-br.from-\[\#07290c\] {
    background: linear-gradient(135deg, var(--teal) 0%, var(--copper) 100%) !important;
}

/* ---- Refined dividers ---- */
.elegant-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
}

.elegant-divider::before, .elegant-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 77, 64, 0.2), transparent);
}

.elegant-divider span {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--copper);
    font-size: 1rem;
    white-space: nowrap;
}

/* ---- Elegant nav underline on active/hover links ---- */
nav a {
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--copper));
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.font-semibold::after {
    width: 100%;
}

/* ---- Elegant input focus ---- */
.elegant-input:focus {
    border-color: var(--copper) !important;
    box-shadow: 0 0 0 4px rgba(201, 111, 62, 0.1) !important;
}

/* ---- Subtle page texture for warmth ---- */
body {
    background-image: radial-gradient(circle at 1px 1px, rgba(13, 77, 64, 0.04) 1px, transparent 0);
    background-size: 28px 28px;
}

/* ---- Dark mode adjustments for the new palette ---- */
html.dark {
    --teal: #4fb3a0;
    --copper: #e0925f;
}

html.dark h1 {
    background: linear-gradient(120deg, #4fb3a0 0%, #e5e0d8 55%, #e0925f 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

html.dark .premium-card, html.dark .glass-card, html.dark .settings-card,
html.dark .stat-box, html.dark .message-card, html.dark .category-card {
    border-color: rgba(79, 179, 160, 0.15) !important;
}

html.dark body {
    background-image: radial-gradient(circle at 1px 1px, rgba(79, 179, 160, 0.06) 1px, transparent 0);
    background-size: 28px 28px;
}

/* ---- Fine print / footer elegance ---- */
footer, .text-center.text-sm {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

/* ---- Text size (accessibility) ----
   Tailwind's utility classes (text-sm, p-4, etc.) are all rem-based, so
   scaling the root font-size scales the whole page proportionally —
   text, padding, icons — without needing a rule per element. */
html.text-size-large { font-size: 112.5%; }
html.text-size-larger { font-size: 125%; }
