/* MoodCanvas — Styles */
:root {
    --primary: #6C5CE7;
    --secondary: #A29BFE;
    --accent: #FD79A8;
    --dark: #1A1A2E;
    --darker: #0F0F1A;
    --card-bg: #1E1E32;
    --text: #E8E8F0;
    --text-muted: #9B9BB0;
    --success: #00B894;
    --warning: #FDCB6E;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--darker) 0%, #16213E 50%, var(--dark) 100%);
    padding: 80px 20px 60px;
    text-align: center;
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 300;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.badge {
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary);
}

/* Main */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    margin-bottom: 60px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text);
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Creation Card */
.creation-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(108, 92, 231, 0.15);
}

.color-bar {
    height: 6px;
    display: flex;
}

.color-bar-segment {
    flex: 1;
}

.creation-content {
    padding: 32px;
}

.creation-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--text);
}

.context-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.chip {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.weather-chip { background: rgba(0, 184, 148, 0.15); color: var(--success); }
.mood-chip { background: rgba(253, 121, 168, 0.15); color: var(--accent); }
.season-chip { background: rgba(253, 203, 110, 0.15); color: var(--warning); }

/* Poem */
.poem-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    border-left: 3px solid var(--primary);
}

.poem-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.poem {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    line-height: 1.9;
    white-space: pre-wrap;
    color: var(--text);
}

/* Art Concept */
.art-concept, .art-prompt-box {
    margin-bottom: 20px;
}

.art-concept h4, .art-prompt-box h4 {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.art-concept p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.art-prompt-box code {
    display: block;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--secondary);
    word-break: break-word;
}

/* Color Palette */
.color-palette {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch::after {
    content: attr(data-color);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Mood Tags */
.mood-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mood-tag {
    background: rgba(253, 121, 168, 0.1);
    border: 1px solid rgba(253, 121, 168, 0.2);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--accent);
}

/* Inspiration Note */
.inspiration-note {
    padding: 12px 16px;
    background: rgba(253, 203, 110, 0.05);
    border-left: 2px solid var(--warning);
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
}

.inspiration-note em {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Feedback */
.feedback-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feedback-section p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.feedback-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.feedback-btn {
    padding: 10px 24px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.like-btn {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.like-btn:hover {
    background: rgba(0, 184, 148, 0.3);
    transform: scale(1.05);
}

.dislike-btn {
    background: rgba(253, 121, 168, 0.15);
    color: var(--accent);
    border: 1px solid rgba(253, 121, 168, 0.3);
}

.dislike-btn:hover {
    background: rgba(253, 121, 168, 0.3);
    transform: scale(1.05);
}

.feedback-note {
    font-size: 0.8rem !important;
    margin-top: 8px;
}

/* Community Prompts */
.prompt-form {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.prompt-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.9rem;
}

.prompt-form input::placeholder {
    color: var(--text-muted);
}

.submit-btn, .generate-btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.submit-btn:hover, .generate-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.prompts-list {
    display: grid;
    gap: 12px;
}

.prompt-item {
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(108, 92, 231, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prompt-text {
    font-style: italic;
    color: var(--text);
}

.prompt-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Style DNA */
.style-dna-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid rgba(108, 92, 231, 0.15);
}

.style-item {
    margin-bottom: 16px;
}

.style-item label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.style-value {
    color: var(--text);
    font-size: 0.95rem;
}

.style-meters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.meter label {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 6px;
}

.meter-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.evolution-info {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.step {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.step h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.step p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(108, 92, 231, 0.2);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
}

.empty-state h3 {
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(108, 92, 231, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-sub {
    font-size: 0.8rem;
    margin-top: 8px;
    opacity: 0.6;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .logo { font-size: 2.2rem; }
    .creation-content { padding: 20px; }
    .prompt-form { flex-direction: column; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .style-meters { grid-template-columns: 1fr; }
    .evolution-info { flex-direction: column; gap: 8px; }
}
