/* ========================================
   UniPivot Happy Diary - Main Stylesheet
   NVC 기반 자기성찰 일기 앱
   ======================================== */

/* ========================================
   CSS Variables (Color Palette & Fonts)
   ======================================== */
:root {
    /* Colors */
    --sage-green: #8B9D83;
    --sage-light: #A8B89F;
    --sage-dark: #6E7D67;
    --cream: #F5F1E8;
    --cream-dark: #E8DCC4;
    --coral: #E09F7D;
    --coral-light: #EDB89A;
    --charcoal: #3A3A3A;
    --gray: #6B6B6B;
    --light-gray: #9E9E9E;
    --white: #FDFBF7;

    /* Status Colors */
    --success: #7CB342;
    --warning: #FFA726;
    --error: #E57373;
    --info: #64B5F6;

    /* Fonts */
    --font-serif: 'Gowun Batang', serif;
    --font-sans: 'Pretendard', -apple-system, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(107, 114, 128, 0.08);
    --shadow-md: 0 4px 16px rgba(107, 114, 128, 0.12);
    --shadow-lg: 0 8px 24px rgba(107, 114, 128, 0.16);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Legacy variables for compatibility */
    --color-primary: var(--sage-green);
    --color-primary-light: var(--sage-light);
    --color-primary-dark: var(--sage-dark);
    --color-secondary: var(--coral);
    --color-success: var(--success);
    --color-warning: var(--warning);
    --color-danger: var(--error);
    --color-gray-50: #F9FAFB;
    --color-gray-100: var(--cream);
    --color-gray-200: var(--cream-dark);
    --color-gray-300: #D1D5DB;
    --color-gray-400: var(--light-gray);
    --color-gray-500: var(--gray);
    --color-gray-600: #4B5563;
    --color-gray-700: var(--charcoal);
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    --color-white: var(--white);
    --spacing-xs: var(--space-xs);
    --spacing-sm: var(--space-sm);
    --spacing-md: var(--space-md);
    --spacing-lg: var(--space-lg);
    --spacing-xl: var(--space-xl);
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    color: var(--charcoal);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Decorative background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(244, 168, 150, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(244, 168, 150, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    color: var(--charcoal);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

a {
    color: var(--sage-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--sage-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Navigation — Dropdown grouped
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--primary-dark, #E8907C);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    margin-right: 2rem;
    flex-shrink: 0;
}

/* ── Menu bar ── */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    height: 100%;
}

.nav-overlay {
    display: none;
}

/* ── Dropdown group ── */
.nav-dropdown,
.nav-single {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.85rem;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-secondary, #7A736C);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.nav-dropdown-toggle:hover {
    background: var(--bg-secondary, #F5F1EB);
    color: var(--text-primary, #3D3632);
}

.nav-dropdown.active > .nav-dropdown-toggle {
    color: var(--primary-dark, #E8907C);
}

.nav-chevron {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.nav-dropdown.open > .nav-dropdown-toggle .nav-chevron {
    transform: rotate(180deg);
}

/* ── Dropdown menu panel ── */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--bg-tertiary, #EDE8E0);
    border-radius: 12px;
    padding: 0.4rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    list-style: none;
    z-index: 1010;
}

.nav-dropdown.open > .nav-dropdown-menu {
    display: block;
    animation: navDropIn 0.15s ease-out;
}

@keyframes navDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary, #7A736C);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
    background: var(--bg-secondary, #F5F1EB);
    color: var(--text-primary, #3D3632);
}

.nav-dropdown-menu li a.current {
    color: var(--primary-dark, #E8907C);
    background: var(--primary-light, #FADAD2);
    font-weight: 600;
}

/* ── Disabled / coming soon items ── */
.nav-dropdown-menu li a.nav-disabled {
    color: var(--text-tertiary, #A69E96);
    pointer-events: none;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-badge-soon {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--bg-tertiary, #EDE8E0);
    color: var(--text-tertiary, #A69E96);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    line-height: 1.4;
}

/* ── Single link (대나무숲) ── */
.nav-single-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-secondary, #7A736C);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-single-link:hover {
    background: var(--bg-secondary, #F5F1EB);
    color: var(--text-primary, #3D3632);
}

.nav-single.active > .nav-single-link {
    color: var(--primary-dark, #E8907C);
}

/* ── Right section (settings, dark mode, logout) ── */
.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-secondary, #7A736C);
    transition: background 0.2s, color 0.2s;
}

.nav-icon-link:hover {
    background: var(--bg-secondary, #F5F1EB);
    color: var(--text-primary, #3D3632);
}

.nav-icon-link.active {
    color: var(--primary-dark, #E8907C);
}

/* ── Hamburger toggle (hidden on desktop) ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1020;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-primary, #3D3632);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Navigation — Mobile (<=768px)
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        position: sticky;
        top: 0;
        backdrop-filter: none;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        height: 54px;
        width: 100%;
    }

    .nav-logo {
        flex: 1;
        font-size: 1.15rem;
        margin-right: 0;
        text-align: left;
        min-width: 0;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
        z-index: 9999;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        margin-left: auto;
    }

    /* Overlay */
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1005;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Slide-in panel */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 70px 0 1.5rem;
        gap: 0;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        transition: right 0.3s ease;
        z-index: 1010;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Reset heights for mobile column layout */
    .nav-dropdown,
    .nav-single {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-dropdown-toggle {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        justify-content: space-between;
        width: 100%;
        border-radius: 0;
    }

    .nav-single-link {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 0;
    }

    /* Mobile dropdown: collapsible (not absolute) */
    .nav-dropdown-menu {
        position: static;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        background: var(--bg-secondary, #F5F1EB);
    }

    .nav-dropdown.open > .nav-dropdown-menu {
        animation: none;
    }

    .nav-dropdown-menu li a {
        padding: 0.7rem 1.5rem 0.7rem 2.5rem;
        font-size: 0.9rem;
    }

    /* Separators */
    .nav-dropdown,
    .nav-single {
        border-bottom: 1px solid var(--bg-tertiary, #EDE8E0);
    }

    /* Right section in mobile */
    .nav-right {
        margin-left: 0;
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--bg-tertiary, #EDE8E0);
        margin-top: auto;
        gap: 0.6rem;
    }

    .nav-right .nav-logout-link {
        margin-left: auto;
    }
}

/* ========================================
   Flash Messages
   ======================================== */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 2rem;
    z-index: 1000;
    max-width: 400px;
}

.flash {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInRight 0.3s ease-out;
}

.flash-success {
    border-left: 4px solid var(--success);
}

.flash-error {
    border-left: 4px solid var(--error);
}

.flash-warning {
    border-left: 4px solid var(--warning);
}

.flash-info {
    border-left: 4px solid var(--info);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray);
    cursor: pointer;
    margin-left: 1rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.container--narrow {
    max-width: 500px;
}

.container--medium {
    max-width: 700px;
}

.container--wide {
    max-width: 1200px;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary,
.btn--primary {
    background: linear-gradient(135deg, var(--sage-green), var(--sage-dark));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary,
.btn--secondary {
    background: var(--cream-dark);
    color: var(--charcoal);
}

.btn-secondary:hover,
.btn--secondary:hover:not(:disabled) {
    background: var(--cream);
}

.btn-danger,
.btn--danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover,
.btn--danger:hover:not(:disabled) {
    background: #D32F2F;
}

.btn--outline {
    background-color: transparent;
    border: 2px solid var(--sage-green);
    color: var(--sage-green);
}

.btn--outline:hover:not(:disabled) {
    background-color: var(--sage-green);
    color: white;
}

.btn-full,
.btn--block {
    width: 100%;
}

.btn-link {
    background: none;
    color: var(--sage-green);
    padding: 0;
    text-decoration: underline;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-sm);
}

.card--hover {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card--hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--sage-dark);
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label,
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select,
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--charcoal);
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(244, 168, 150, 0.1);
}

.form-group textarea,
.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-group small,
.form-hint {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.form-error {
    font-size: 0.875rem;
    color: var(--error);
    margin-top: 0.25rem;
}

.form-row {
    display: flex;
    gap: var(--space-md);
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--cream-dark);
}

/* Checkbox & Radio */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: auto;
    accent-color: var(--sage-green);
}

/* ========================================
   Auth Pages (Login/Register)
   ======================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
}

.auth-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--sage-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
}

.auth-form {
    margin-bottom: 2rem;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--cream-dark);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-oauth {
    padding: 0.875rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-kakao {
    background: #FEE500;
    color: #000000;
}

.btn-naver {
    background: #03C75A;
    color: white;
}

.btn-google {
    background: white;
    color: #757575;
    border: 1px solid #dadce0;
}

.btn-oauth:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer a {
    color: var(--sage-green);
    text-decoration: none;
    font-weight: 500;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1,
.page-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--sage-dark);
}

.back-link {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* ========================================
   Diary List
   ======================================== */
.diary-list {
    display: grid;
    gap: 1.5rem;
}

.diary-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.diary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.diary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.diary-date {
    display: flex;
    flex-direction: column;
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sage-dark);
    font-family: var(--font-serif);
}

.date-month {
    font-size: 0.875rem;
    color: var(--gray);
}

.diary-meta {
    display: flex;
    gap: 0.5rem;
}

.meta-item {
    font-size: 1.5rem;
}

.diary-card-body {
    margin-bottom: 1rem;
}

.diary-emotions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.emotion-tag {
    background: var(--cream);
    color: var(--charcoal);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

.emotion-more {
    background: var(--sage-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

.diary-preview {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.diary-exercise {
    color: var(--sage-dark);
    font-size: 0.875rem;
}

.diary-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--cream);
}

.diary-time {
    color: var(--light-gray);
    font-size: 0.875rem;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    font-family: var(--font-serif);
    color: var(--sage-dark);
    margin-bottom: 0.5rem;
}

.empty-state p,
.empty-text {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* ========================================
   Diary Detail
   ======================================== */
.diary-detail {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.diary-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--cream);
}

.detail-date h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--sage-dark);
    margin-bottom: 0.75rem;
}

.detail-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.meta-badge {
    background: var(--cream);
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--charcoal);
}

.detail-actions {
    display: flex;
    gap: 0.75rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    color: var(--sage-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-text {
    color: var(--charcoal);
    line-height: 1.8;
    font-size: 1rem;
}

.detail-text.highlight {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--sage-green);
}

.emotions-list,
.needs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.emotion-item {
    background: var(--cream);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.emotion-name {
    font-weight: 500;
    color: var(--charcoal);
}

.emotion-intensity {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.need-item {
    background: var(--cream);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.need-fulfilled {
    border-left: 4px solid var(--success);
}

.need-unfulfilled {
    border-left: 4px solid var(--warning);
}

.need-icon {
    font-size: 1.25rem;
}

.need-name {
    font-weight: 500;
}

.need-priority {
    background: var(--coral);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    margin-left: auto;
}

.diary-photo {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.detail-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--cream);
}

/* ========================================
   Stats & Dashboard
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
}

.stat-card {
    text-align: center;
    padding: var(--space-md);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sage-dark);
    font-family: var(--font-serif);
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Streak Card */
.streak-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: linear-gradient(135deg, var(--sage-green), var(--sage-dark));
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
}

.streak-icon {
    font-size: 2.5rem;
}

.streak-info {
    flex: 1;
}

.streak-count {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

.streak-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.streak-stats {
    text-align: right;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-md);
}

.achievement-unlocked {
    background-color: var(--cream);
}

.achievement-locked {
    opacity: 0.6;
}

.achievement-icon {
    font-size: 2rem;
}

.achievement-icon.grayscale {
    filter: grayscale(100%);
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: 600;
}

.achievement-desc,
.achievement-date {
    font-size: 0.75rem;
    color: var(--gray);
}

.achievement-check {
    color: var(--success);
    font-size: 1.25rem;
}

.achievement-earned {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--sage-light), var(--sage-green));
    color: white;
    border-radius: var(--radius-md);
}

/* Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    background-color: var(--cream);
    color: var(--charcoal);
}

.tag-emotion {
    background-color: rgba(244, 168, 150, 0.2);
    color: var(--sage-dark);
}

.tag-need {
    background-color: rgba(244, 168, 150, 0.2);
    color: var(--coral);
}

/* ========================================
   User Settings
   ======================================== */
.info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--cream);
}

.info-item dt {
    color: var(--gray);
}

.info-item dd {
    font-weight: 500;
}

.danger-zone {
    border: 2px solid var(--error);
}

.danger-zone .card-title.danger {
    color: var(--error);
}

.warning-text {
    color: var(--error);
    margin-bottom: var(--space-md);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: white;
    padding: 2rem;
    text-align: center;
    color: var(--gray);
    margin-top: 4rem;
}

/* ========================================
   Error Pages
   ======================================== */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    font-family: var(--font-serif);
    color: var(--sage-dark);
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--gray);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .diary-detail-header {
        flex-direction: column;
        gap: 1rem;
    }

    .detail-actions {
        width: 100%;
        justify-content: center;
    }

    .flash-messages {
        right: 1rem;
        left: 1rem;
        max-width: none;
        top: 70px;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .container {
        padding: 1rem;
    }

    .form-row {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .streak-card {
        flex-direction: column;
        text-align: center;
    }

    .streak-stats {
        text-align: center;
    }

    .diary-detail {
        padding: 1.5rem;
    }

    .diary-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .date-day {
        font-size: 1.5rem;
    }
}

/* ========================================
   Diary Write Page - Timer
   ======================================== */
.timer-card {
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--sage-dark) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.timer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.05) rotate(180deg);
    }
}

.timer-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.timer-display {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

.timer-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--coral-light), var(--coral));
    border-radius: 3px;
    width: 0%;
    transition: width 1s linear;
}

.timer-message {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* ========================================
   Diary Write Page - Form
   ======================================== */
.diary-form {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.diary-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 29px,
            rgba(244, 168, 150, 0.03) 29px,
            rgba(244, 168, 150, 0.03) 30px
        );
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.section {
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--sage-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 1.5rem;
}

/* ========================================
   Accordion
   ======================================== */
.accordion-item {
    margin-bottom: 1rem;
}

.accordion-header {
    width: 100%;
    background: var(--cream);
    border: none;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.accordion-header:hover {
    background: var(--cream-dark);
}

.accordion-header.active {
    background: var(--sage-light);
    color: white;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.accordion-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--charcoal);
}

.accordion-header.active .accordion-title {
    color: white;
}

.accordion-icon {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    color: var(--gray);
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, padding 0.4s ease;
    background: white;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.accordion-content.active {
    max-height: 8000px;
    padding: 1.25rem;
    border: 2px solid var(--sage-light);
    border-top: none;
}

/* ========================================
   Emotion Selector
   ======================================== */
.emotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.emotion-btn {
    background: var(--cream);
    border: 2px solid transparent;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.emotion-btn:hover {
    background: var(--cream-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.emotion-btn.selected {
    background: var(--sage-light);
    border-color: var(--sage-dark);
    color: white;
    font-weight: 500;
}

.emotion-btn .emoji {
    font-size: 1.2rem;
}

/* Tooltip for synonyms */
.emotion-btn::after {
    content: attr(data-synonyms);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--charcoal);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    word-break: keep-all;
}

/* 오른쪽 끝 감정 버튼의 툴팁은 왼쪽 정렬 */
.emotion-grid .emotion-btn:nth-child(3n)::after {
    left: auto;
    right: 0;
    transform: translateX(0) scale(0.9);
}

.emotion-grid .emotion-btn:nth-child(3n):hover::after {
    transform: translateX(0) scale(1);
}

/* 왼쪽 끝 감정 버튼의 툴팁은 오른쪽 정렬 */
.emotion-grid .emotion-btn:nth-child(3n+1)::after {
    left: 0;
    right: auto;
    transform: translateX(0) scale(0.9);
}

.emotion-grid .emotion-btn:nth-child(3n+1):hover::after {
    transform: translateX(0) scale(1);
}

.emotion-btn::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--charcoal);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.emotion-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.emotion-btn:hover::before {
    opacity: 1;
}

/* ========================================
   Intensity Slider
   ======================================== */
.intensity-slider {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius-md);
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right,
        var(--sage-light) 0%,
        var(--sage-light) 80%,
        var(--cream-dark) 80%,
        var(--cream-dark) 100%);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sage-dark);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-md);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sage-dark);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: none;
}

/* ========================================
   Needs Selector
   ======================================== */
.needs-grid {
    display: grid;
    gap: 0.75rem;
}

.need-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.need-item:hover {
    background: var(--cream-dark);
}

.need-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--sage-green);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.need-checkbox.checked {
    background: var(--sage-green);
}

.need-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
}

.need-info {
    flex: 1;
}

.need-name {
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.need-desc {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.need-keywords {
    font-size: 0.75rem;
    color: var(--sage-dark);
    font-weight: 500;
    font-style: italic;
}

.need-keywords::before {
    content: '🔑 ';
    opacity: 0.7;
}

.priority-badge {
    background: var(--coral);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
}

/* ========================================
   List Items (Gratitude & Help)
   ======================================== */
.list-item {
    position: relative;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.list-item:last-child {
    margin-bottom: 0;
}

.list-item textarea {
    min-height: 100px;
}

.btn-add {
    width: 100%;
    padding: 0.875rem;
    background: var(--cream);
    border: 2px dashed var(--sage-light);
    border-radius: var(--radius-md);
    color: var(--sage-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-add:hover {
    background: var(--cream-dark);
    border-color: var(--sage-green);
    transform: translateY(-1px);
}

.btn-add span {
    font-size: 1.1rem;
}

.remove-item {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background: var(--coral);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.remove-item:hover {
    opacity: 1;
    transform: scale(1.1);
    background: #CC8860;
}

/* ========================================
   Exercise Input
   ======================================== */
.exercise-input {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

/* ========================================
   Photo Upload
   ======================================== */
.photo-upload {
    border: 2px dashed var(--sage-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--cream);
}

.photo-upload:hover {
    border-color: var(--sage-green);
    background: var(--cream-dark);
}

.photo-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.photo-upload-text {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ========================================
   Button Group
   ======================================== */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.button-group .btn {
    flex: 1;
    padding: 1rem 2rem;
}

/* ========================================
   Responsive - Write Page
   ======================================== */
@media (max-width: 768px) {
    .timer-display {
        font-size: 2.5rem;
    }

    .diary-form {
        padding: 2rem 1.5rem;
    }

    .emotion-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .exercise-input {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }
}

/* ========================================
   Settings Page
   ======================================== */
.settings-container {
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--sage-dark);
    margin-bottom: 2rem;
}

.settings-form {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.settings-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--cream);
}

.settings-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-label span {
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sage-dark);
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

/* ========================================
   Stats Dashboard
   ======================================== */
.stats-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.overview-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.overview-card.highlight {
    background: linear-gradient(135deg, var(--sage-green), var(--sage-dark));
    color: white;
}

.overview-icon {
    font-size: 2.5rem;
}

.overview-content {
    flex: 1;
}

.overview-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin-bottom: 0.25rem;
}

.overview-card.highlight .overview-value {
    color: white;
}

.overview-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.overview-card.highlight .overview-label {
    color: rgba(255, 255, 255, 0.9);
}

.stats-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.chart-placeholder {
    background: var(--cream);
    padding: 3rem;
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--gray);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.badge-card {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.badge-card.earned {
    background: linear-gradient(135deg, var(--sage-light), var(--sage-green));
    color: white;
}

.badge-card.locked {
    opacity: 0.5;
}

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

.badge-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.badge-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.badge-card.earned .badge-name {
    color: white;
}

.badge-desc {
    font-size: 0.75rem;
    color: var(--gray);
}

.badge-card.earned .badge-desc {
    color: rgba(255, 255, 255, 0.9);
}
