/* ============================================
   COLOR PALETTE - Soffritto edition 🥕🧅🥬
   ============================================ */
:root {
    --bg-dark: #1c1209;        /* Dark roasted onion */
    --bg-lighter: #2d1f10;     /* Caramelized base */
    --primary: #F47B20;         /* Harvest Orange - carrot */
    --secondary: #99C24D;       /* Yellow Green - celery */
    --accent: #D4A84B;          /* Golden Bronze - onion */
    --text: #F1EDE4;            /* Soft Linen - light */
    --text-dim: #a89880;        /* Muted warm gray */
    --success: #99C24D;         /* Celery green */
    --brown: #8B4513;           /* Saddle Brown - cooked soffritto */
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jersey 10', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 20px;
}

/* ============================================
   SCANLINE OVERLAY - subtle CRT effect
   ============================================ */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 1000;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   HEADER / LOGO SECTION
   ============================================ */
header {
    text-align: center;
    margin-bottom: 50px;
}

.logo {
    font-size: 64px;
    color: var(--primary);
    text-shadow: 
        4px 4px 0 var(--brown),
        -1px -1px 0 var(--bg-dark);
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.tagline {
    color: var(--text-dim);
    font-size: 18px;
}

/* Blinking cursor effect */
.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ============================================
   DICTIONARY ENTRY SECTION
   ============================================ */
.dictionary {
    background: var(--bg-lighter);
    border: 2px solid var(--brown);
    padding: 25px;
    margin-bottom: 40px;
}

.dict-word {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 5px;
}

.dict-phonetic {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 15px;
}

.dict-type {
    color: var(--secondary);
    font-size: 16px;
    font-style: italic;
    margin-bottom: 8px;
}

.dict-definition {
    color: var(--text);
    font-size: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--accent);
    margin-bottom: 15px;
}

.dict-example {
    color: var(--text-dim);
    font-size: 18px;
    padding-left: 15px;
}

.dict-example::before {
    content: '"';
    color: var(--accent);
}

.dict-example::after {
    content: '"';
    color: var(--accent);
}

.dict-separator {
    border: none;
    border-top: 1px dashed var(--text-dim);
    margin: 20px 0;
}

.dict-origin {
    color: var(--text-dim);
    font-size: 16px;
    margin-top: 15px;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
section {
    margin-bottom: 40px;
}

h2 {
    font-size: 28px;
    color: var(--secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::before {
    content: ">";
    color: var(--primary);
}

p {
    font-size: 20px;
    line-height: 1.8;
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.1s;
}

a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* Big link button style */
.big-link {
    display: inline-block;
    padding: 15px 25px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: 'Jersey 10', sans-serif;
    font-size: 24px;
    margin-top: 15px;
    transition: all 0.2s;
}

.big-link:hover {
    background: var(--accent);
    color: var(--bg-dark);
    text-shadow: none;
    box-shadow: 0 0 20px var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--bg-lighter);
    color: var(--text-dim);
    font-size: 16px;
}

.footer-status {
    margin-bottom: 10px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    margin-right: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.pixel-divider {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    color: var(--text-dim);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 500px) {
    .logo {
        font-size: 48px;
    }
    .dict-word {
        font-size: 28px;
    }
    .container {
        padding: 20px 15px;
    }
}