:root {
    --bg: #050505;
    --text: #e0e0e0;
    --accent: #04d9ff; /* Electric Blue */
    --card-bg: #0a0a0a;
    --border: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Mono', monospace;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* NAV */
.top-nav { padding: 20px; }
.nav-back {
    font-size: 0.8rem; color: var(--text); text-decoration: none; opacity: 0.6;
    transition: opacity 0.2s;
}
.nav-back:hover { opacity: 1; color: var(--accent); }

/* HEADER */
.logo-header {
    text-align: center; margin: 2rem 0;
}
.logo-header h1 {
    font-size: 2rem; letter-spacing: 5px; color: var(--accent);
    margin-bottom: 0.5rem; text-shadow: 0 0 10px rgba(4, 217, 255, 0.4);
}
.logo-header p {
    font-size: 0.8rem; color: #666;
}

/* MAIN LAYOUT */
.content-wrapper {
    flex-grow: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding-bottom: 4rem;
}

/* THE WORD CARD */
.word-card {
    width: 90%; max-width: 600px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 3rem;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: border-color 0.3s;
}
.word-card:hover { border-color: var(--accent); }

/* Card Internals */
.card-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}

.word-type {
    font-size: 0.7rem; color: #666; text-transform: uppercase; letter-spacing: 2px;
}

.audio-btn {
    background: none; border: 1px solid #333; color: var(--accent);
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.audio-btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 15px var(--accent); }

.the-word {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem; line-height: 1;
    color: #fff; margin: 0; font-weight: 400;
}

.phonetic {
    font-family: 'Space Mono', monospace;
    font-size: 1rem; color: #888; margin-top: 0.5rem;
}

.divider {
    height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 2rem 0;
}

.definition {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; line-height: 1.4; color: #ddd;
    margin-bottom: 2rem;
}

.origin-box {
    font-size: 0.8rem; border-left: 2px solid var(--accent);
    padding-left: 15px; color: #888;
}
.origin-box .label {
    display: block; font-size: 0.6rem; margin-bottom: 5px; color: var(--accent);
}

/* CONTROLS */
.controls { margin-top: 3rem; }

.discover-btn {
    background: transparent; border: 1px solid var(--accent);
    color: var(--accent); padding: 15px 40px;
    font-family: 'Space Mono', monospace; font-size: 1rem;
    cursor: pointer; transition: all 0.2s;
    letter-spacing: 2px;
}
.discover-btn:hover {
    background: var(--accent); color: #000;
    box-shadow: 0 0 20px rgba(4, 217, 255, 0.4);
}

/* Mobile */
@media (max-width: 600px) {
    .the-word { font-size: 2.5rem; }
    .definition { font-size: 1.2rem; }
    .word-card { padding: 2rem; }
}