:root {
    --bg-color: #f4f4f9;
    --card-bg: #ffffff;
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #555;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--primary-color);
    padding: 20px;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 500px;
}

header {
    margin-bottom: 2rem;
}

.date {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.word {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    text-transform: capitalize;
}

.phonetics-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phonetic {
    font-family: monospace;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.audio-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-color);
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn:hover {
    background: rgba(52, 152, 219, 0.1);
}

.divider {
    height: 1px;
    background-color: #eee;
    margin: 1.5rem 0;
}

.part-of-speech {
    display: inline-block;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #888;
}

.definition {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #aaa;
}
.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Makes divider equal height */
    background-color: #f8f9fa;
    padding: 15px 10px; /* Reduced side padding */
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.stat-box {
    display: flex;
    align-items: center; /* Vertically center everything */
    justify-content: center;
    flex: 1;
    gap: 12px; /* Space between text and icon */
}

.stat-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align text to the left */
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
}

.stat-icon {
    font-size: 1.8rem;
    opacity: 1; /* Made fully visible */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* Slight shadow for pop */
}

.stat-divider {
    width: 1px;
    background-color: #e0e0e0;
    margin: 5px 0;
}
/* Auth Styles */
.user-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.9rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
    color: #555;
}

.auth-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.logout-btn {
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    color: #888;
    margin-left: 5px;
    font-size: 0.85rem;
}

#user-name {
    font-weight: 600;
    color: var(--primary-color);
}