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

:root {
    /* Dark (Default) */
    --bg-primary: #0a0a0f;
    --bg-glass: rgba(20, 20, 30, 0.6);
    --accent-bloom: #6366f1;
    --accent-warm: #f59e0b;
    --accent-calm: #10b981;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
    transition: all 0.5s ease;
}

/* Rosé Pine Light Theme */
[data-theme="rose-pine"] {
    --bg-primary: #faf4ed;
    --bg-glass: rgba(255, 250, 243, 0.8);
    --accent-bloom: #d7827e;
    --accent-warm: #ea9d34;
    --accent-calm: #286983;
    --text-primary: #575279;
    --text-secondary: rgba(87, 82, 121, 0.7);
    --glass-border: rgba(144, 122, 169, 0.2);
    --shadow-glow: 0 0 60px rgba(215, 130, 126, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient Glow Background */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, 
        rgba(99, 102, 241, 0.15) 0%, 
        transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

/* Glass Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-bloom {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-bloom), #8b5cf6);
    border-radius: 50%;
    position: relative;
    animation: bloom 3s ease-in-out infinite;
}

@keyframes bloom {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.8); }
}

.logo span {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.nav-actions { display: flex; gap: 0.5rem; } .icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

#clock {
    display: block;
    font-size: 6rem;
    font-weight: 200;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

#clock.breathing {
    animation: clockBreathe 4s ease-in-out infinite;
}

@keyframes clockBreathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.subtle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Intent Surface */
.intent-surface {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

.thought-bubble {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
}

.thought-bubble:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.thought-bubble.active {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    height: auto;
    padding: 2rem;
}

.thought-bubble.active .hint {
    opacity: 0;
    position: absolute;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    padding: 0 1rem;
}

/* Capture Interface */
.capture-interface {
    display: none;
    width: 100%;
    margin-top: 1rem;
}

.thought-bubble.active .capture-interface {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.intent-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 1rem 0;
    outline: none;
    border-bottom: 2px solid var(--glass-border);
    font-family: inherit;
}

.intent-input::placeholder {
    color: var(--text-secondary);
}

.intent-input:focus {
    border-bottom-color: var(--accent-bloom);
}

.intent-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.action-btn:hover {
    background: var(--accent-bloom);
    border-color: var(--accent-bloom);
    transform: translateY(-2px);
}

/* Living Space */
.living-space {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.surface {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
}

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

.surface-title {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.count {
    background: var(--accent-bloom);
    color: var(--bg-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.card-type {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-meta {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Awareness Panel */
.awareness-panel {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    padding: 1.5rem;
}

.awareness-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--accent-calm);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-calm);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.suggestion-bubble {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.5;
}

.suggestion-bubble:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

/* Focus Mode */
.focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.focus-overlay.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid var(--accent-bloom);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: breathing 4s ease-in-out infinite;
    margin-bottom: 2rem;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.breathing-circle span {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-bloom);
}

.focus-items {
    max-width: 600px;
    width: 90%;
}

.focus-item {
    text-align: center;
    font-size: 1.25rem;
    padding: 1rem;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.focus-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Particles */
.particles {
    position: fixed;
    pointer-events: none;
    z-index: 100;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
}

/* Completed state */
.card.completed {
    opacity: 0.5;
}

.card.completed .card-content {
    text-decoration: line-through;
    color: var(--text-secondary);
}

/* Empty state */
.cards-container:empty::before {
    content: "Tap the orb to capture your first thought...";
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem;
    font-style: italic;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }
    
    #clock {
        font-size: 4rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .thought-bubble {
        width: 160px;
        height: 160px;
    }
    
    .thought-bubble.active {
        width: 100%;
    }
}

/* Selection colors */

.particles {
    position: fixed;
    pointer-events: none;
    z-index: 100;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
}

.selection-color::-moz-selection {
    background: var(--accent-bloom);
}

.selection-color::selection {
    background: var(--accent-bloom);
}

/* Rose Pine specific overrides */
[data-theme="rose-pine"] .icon-btn:hover { 
    background: rgba(87, 82, 121, 0.15); 
}

[data-theme="rose-pine"] .thought-bubble:hover {
    box-shadow: 0 0 40px rgba(215, 130, 126, 0.3);
}

[data-theme="rose-pine"] .ambient-glow {
    background: radial-gradient(circle, rgba(215, 130, 126, 0.12) 0%, transparent 70%);
}
