/* ============================================================
   FILE: css/pages/lifeos-creative.css
   Mục đích: Styling cho LifeOS Phase 10 - Dòng chảy Sáng tạo
   ============================================================ */

/* ===== GRID ===== */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.creative-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

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

.creative-card h3 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    color: #1a1a2e;
}

/* ===== ENERGY CARD ===== */
.energy-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.energy-card h3 {
    color: white;
}

.energy-gauge {
    padding: 20px;
}

.energy-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#fbbf24 calc(var(--energy) * 3.6deg),
            rgba(255, 255, 255, 0.2) calc(var(--energy) * 3.6deg));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.energy-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: white;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.energy-status {
    font-size: 1.2rem;
    margin: 10px 0 5px;
}

.energy-suggestion {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-log-peak {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-log-peak:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== INNOVATION CARD ===== */
.innovation-card {
    text-align: center;
    border-left: 4px solid #8b5cf6;
}

.innovation-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 20px;
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a2e;
}

.score-level {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.innovation-trend {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.innovation-trend.rising {
    color: #10b981;
}

.innovation-trend.declining {
    color: #ef4444;
}

.innovation-trend.stable {
    color: #6b7280;
}

/* ===== CAPTURE CARD ===== */
.capture-card {
    border-left: 4px solid #f59e0b;
}

.capture-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.capture-input textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    resize: none;
    height: 100px;
    font-family: inherit;
    font-size: 0.95rem;
}

.capture-input textarea:focus {
    outline: none;
    border-color: #f59e0b;
}

.btn-capture {
    padding: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-capture:hover {
    transform: scale(1.02);
}

/* ===== IDEAS CARD ===== */
.ideas-card {
    border-left: 4px solid #10b981;
}

.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.idea-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.idea-item.new {
    border-left: 3px solid #3b82f6;
}

.idea-item.incubating {
    border-left: 3px solid #f59e0b;
}

.idea-item.developing {
    border-left: 3px solid #10b981;
}

.idea-item.implemented {
    border-left: 3px solid #8b5cf6;
}

.idea-content {
    font-size: 0.9rem;
    color: #333;
}

.idea-status {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.ideas-count {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.no-ideas {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

/* ===== AI TOOLS CARD ===== */
.ai-tools-card {
    border-left: 4px solid #ec4899;
}

.ai-tools-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-ai-tool {
    padding: 12px 15px;
    background: linear-gradient(135deg, #f0f0f5 0%, #e5e7eb 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-ai-tool:hover {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
}

.ai-tool-result {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    min-height: 100px;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .creative-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .ai-tools-list {
        grid-template-columns: 1fr;
    }
}

/* ===== DARK MODE ===== */
body.dark-mode .creative-card {
    background: #1e1e2e;
}

body.dark-mode .creative-card h3 {
    color: #e2e8f0;
}

body.dark-mode .capture-input textarea {
    background: #12121a;
    border-color: #333;
    color: white;
}

body.dark-mode .idea-item,
body.dark-mode .innovation-trend,
body.dark-mode .ai-tool-result {
    background: #2d3748;
}

body.dark-mode .idea-content {
    color: #e2e8f0;
}

body.dark-mode .btn-ai-tool {
    background: linear-gradient(135deg, #2d3748 0%, #1e1e2e 100%);
    color: #e2e8f0;
}