/* ==========================================================================
   Self-Observation App - Design System
   A calm, introspective aesthetic for self-reflection
   ========================================================================== */

:root {
    /* Colors - Deep, calming palette */
    --bg-deep: #1a1a2e;
    --bg-surface: #16213e;
    --bg-elevated: #0f3460;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --accent: #e94560;
    --accent-soft: rgba(233, 69, 96, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(233, 69, 96, 0.4);
    
    /* Feelings colors */
    --feeling-met: #4ecca3;
    --feeling-unmet: #e94560;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Light Theme */
[data-theme="light"] {
    --bg-deep: #f5f5f7;
    --bg-surface: #ffffff;
    --bg-elevated: #e8e8ec;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --border: rgba(0, 0, 0, 0.1);
    --border-focus: rgba(233, 69, 96, 0.5);
    --accent-soft: rgba(233, 69, 96, 0.1);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: var(--space-sm) var(--space-md);
    z-index: 1000;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
}

h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
}

.subtitle {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.view {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn var(--transition-slow) ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-header {
    text-align: center;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-xl);
}

.view-header h1 {
    margin-bottom: var(--space-sm);
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-deep);
    z-index: 100;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.nav-back:hover {
    color: var(--text-primary);
}

.nav-back svg {
    width: 20px;
    height: 20px;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #d13a52;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--border-focus);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: var(--space-sm);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    border-radius: 12px;
}

.btn-full {
    width: 100%;
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Cards & Lists
   ========================================================================== */

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: all var(--transition-fast);
}

.card:hover {
    border-color: var(--border-focus);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.observation-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.observation-card {
    cursor: pointer;
}

.observation-card .date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.observation-card .preview {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.observation-card .feelings-preview {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: var(--space-lg);
}

.search-box .search-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-box .search-icon svg {
    width: 18px;
    height: 18px;
}

.search-box input {
    width: 100%;
    padding: var(--space-sm) var(--space-md) var(--space-sm) calc(var(--space-md) + 26px);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--border-focus);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: var(--space-xxl);
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-xl);
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.form-label svg {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

textarea:focus {
    outline: none;
    border-color: var(--border-focus);
}

textarea::placeholder {
    color: var(--text-muted);
}

/* ==========================================================================
   Feelings & Needs Selection
   ========================================================================== */

.selection-section {
    margin-bottom: var(--space-xl);
}

.selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.selection-toggle {
    display: flex;
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.toggle-btn {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-btn.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.toggle-btn[data-type="met"] {
    border-right: 1px solid var(--border);
}

.toggle-btn[data-type="met"].active {
    color: var(--feeling-met);
}

.toggle-btn[data-type="unmet"].active {
    color: var(--feeling-unmet);
}

.feeling-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feeling-category {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.category-header {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-elevated);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.category-header.met {
    border-left: 3px solid var(--feeling-met);
}

.category-header.unmet {
    border-left: 3px solid var(--feeling-unmet);
}

.feeling-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding: var(--space-sm);
}

.chip {
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.chip.selected {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.chip.selected.met {
    background: rgba(78, 204, 163, 0.15);
    border-color: var(--feeling-met);
    color: var(--feeling-met);
}

.chip.selected.unmet {
    background: rgba(233, 69, 96, 0.15);
    border-color: var(--feeling-unmet);
    color: var(--feeling-unmet);
}

/* Selected feelings/needs summary */
.selected-summary {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    min-height: 32px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--accent-soft);
    border-radius: 16px;
    font-size: 0.85rem;
    color: var(--accent);
}

.selected-tag.met {
    background: rgba(78, 204, 163, 0.15);
    color: var(--feeling-met);
}

.selected-tag.unmet {
    background: rgba(233, 69, 96, 0.15);
    color: var(--feeling-unmet);
}

.selected-tag.tag {
    background: rgba(100, 100, 150, 0.2);
    color: var(--text-secondary);
}

/* Tag input */
.tag-input-wrapper {
    display: flex;
    gap: var(--space-sm);
}

.tag-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.tag-input:focus {
    outline: none;
    border-color: var(--border-focus);
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.85rem;
}

.existing-tags {
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

.selected-tag button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.selected-tag button:hover {
    opacity: 1;
}

.selected-tag button svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Needs Selection
   ========================================================================== */

.needs-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.needs-category {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.needs-category .category-header {
    border-left: 3px solid var(--accent);
}

/* ==========================================================================
   Reference Panel
   ========================================================================== */

.reference-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    transform: translateY(calc(100% - 48px));
    transition: transform var(--transition-normal);
    z-index: 200;
}

.reference-panel.open {
    transform: translateY(0);
}

.reference-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    cursor: pointer;
}

.reference-handle::before {
    content: '';
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.reference-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: calc(-1 * var(--space-sm));
    margin-bottom: var(--space-md);
}

.reference-content {
    padding: 0 var(--space-lg) var(--space-xl);
    overflow-y: auto;
    max-height: calc(70vh - 80px);
}

/* ==========================================================================
   Actions Bar
   ========================================================================== */

.actions-bar {
    position: sticky;
    bottom: 0;
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    gap: var(--space-md);
}

/* ==========================================================================
   Detail View
   ========================================================================== */

.detail-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.detail-label svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.detail-content {
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ==========================================================================
   Settings View
   ========================================================================== */

.settings-section {
    margin-bottom: var(--space-xl);
}

.settings-section h3 {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: var(--space-sm);
}

.settings-item-label {
    font-size: 0.95rem;
}

.settings-item-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.settings-select {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 120px;
}

.settings-select:focus {
    outline: none;
    border-color: var(--border-focus);
}

/* ==========================================================================
   Stats View
   ========================================================================== */

.home-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-md);
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
}

.stat-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-section {
    margin-bottom: var(--space-xl);
}

.stats-section h3 {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-sm);
    align-items: center;
}

.stat-label {
    font-size: 0.9rem;
}

.stat-label.met {
    color: var(--feeling-met);
}

.stat-label.unmet {
    color: var(--feeling-unmet);
}

.stat-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 24px;
    text-align: right;
}

.stat-bar {
    grid-column: 1 / -1;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.stat-bar-fill.met {
    background: var(--feeling-met);
}

.stat-bar-fill.unmet {
    background: var(--feeling-unmet);
}

/* ==========================================================================
   Modal / Dialog
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    z-index: 1000;
    animation: fadeIn var(--transition-fast);
}

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: var(--space-xl);
    animation: slideUp var(--transition-normal);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal h3 {
    margin-bottom: var(--space-md);
}

.modal p {
    margin-bottom: var(--space-lg);
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
    display: none !important;
}

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

.text-muted {
    color: var(--text-muted);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .view {
        padding: var(--space-md);
    }
    
    .nav-header {
        padding: var(--space-sm) var(--space-md);
    }
}

/* ==========================================================================
   Help View
   ========================================================================== */

.help-section {
    margin-bottom: var(--space-xl);
}

.help-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.help-section h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.help-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.help-card {
    padding: var(--space-md);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    border-left: 4px solid;
}

.help-card.met {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--feeling-met);
}

.help-card.unmet {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--feeling-unmet);
}

.help-card strong {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.help-card p {
    margin-bottom: 0;
    font-style: italic;
}

.needs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.needs-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.needs-list li:last-child {
    border-bottom: none;
}

.needs-list li strong {
    color: var(--text-primary);
}

.steps-list {
    padding-left: var(--space-lg);
    margin: 0;
}

.steps-list li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.app-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.app-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.app-footer a:hover {
    color: var(--accent);
}

.easter-egg-trigger {
    cursor: pointer;
    opacity: 0.3;
    font-size: 0.9rem;
    margin-left: var(--space-sm);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.easter-egg-trigger:hover {
    opacity: 1;
    transform: scale(1.3);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    body {
        background: white;
        color: black;
    }

    .nav-header,
    .actions-bar,
    .reference-panel {
        display: none;
    }
}

/* ==========================================================================
   Easter Egg
   ========================================================================== */

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10001;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: -30px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    animation: confetti-fall ease-out forwards;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    filter: brightness(1.2);
}

.confetti:nth-child(odd) {
    width: 14px;
    height: 22px;
    border-radius: 50%;
}

.confetti:nth-child(3n) {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.confetti:nth-child(5n) {
    width: 10px;
    height: 24px;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(1080deg) scale(0.5);
        opacity: 0.8;
    }
}

.easter-egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--space-md);
    animation: fade-in 0.3s ease;
}

.easter-egg-overlay.fade-out {
    animation: fade-out 0.3s ease forwards;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.easter-egg-modal {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 500px;
    text-align: center;
    animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes modal-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.easter-egg-giraffe {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    animation: giraffe-bounce 1s ease infinite;
}

@keyframes giraffe-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.easter-egg-quote {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0 0 var(--space-md) 0;
    padding: 0;
    border: none;
}

.easter-egg-cite {
    display: block;
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.easter-egg-close {
    font-size: 1rem;
}
