/**
 * AstionComunidades — themes.css
 * ============================================================
 * Idêntico ao sistema de temas do perfil.html (AstionLiterário)
 * Definições aplicadas via data-theme no <html>, salvo em
 * localStorage com a chave 'astion_theme'.
 *
 * Variáveis canônicas (perfil):
 *   --primary  --primary-hover  --primary-light
 *   --secondary  --accent
 *   --bg-body  --bg-sidebar  --bg-card  --bg-hover
 *   --text  --text-muted  --text-dim
 *   --border
 *   --gradient
 *   --shadow-sm  --shadow-medium
 *
 * Aliases para compatibilidade com os CSS das comunidades:
 *   --bg           → --bg-body
 *   --primary-dark → --primary-hover
 *   --shadow       → --shadow-medium
 * ============================================================
 */

/* ──────────────────────── LIGHT (padrão) ────────────────────────── */
[data-theme="light"] {
    --primary:        #6366f1;
    --primary-hover:  #4f46e5;
    --primary-light:  #818cf8;
    --secondary:      #8b5cf6;
    --accent:         #f59e0b;

    --bg-body:    #f8f9fc;
    --bg-sidebar: #ffffff;
    --bg-card:    #ffffff;
    --bg-hover:   #f0f1f5;

    --text:       #1f2937;
    --text-muted: #6b7280;
    --text-dim:   #9ca3af;
    --border:     #e5e7eb;

    --gradient:      linear-gradient(135deg, #6366f1, #8b5cf6);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);

    /* aliases comunidades */
    --bg:           #f8f9fc;
    --primary-dark: #4f46e5;
    --shadow:       0 4px 12px rgba(0,0,0,0.08);

    /* novos: fundo de chip/badge e brilho para sombras */
    --primary-tint: #e0e7ff;
    --primary-glow: rgba(99,102,241,0.20);
}

/* ──────────────────────── SKY ────────────────────────── */
[data-theme="sky"] {
    --primary:        #0ea5e9;
    --primary-hover:  #0284c7;
    --primary-light:  #38bdf8;
    --secondary:      #06b6d4;
    --accent:         #14b8a6;

    --bg-body:    #f0f9ff;
    --bg-sidebar: #ffffff;
    --bg-card:    #ffffff;
    --bg-hover:   #e0f2fe;

    --text:       #0c4a6e;
    --text-muted: #0369a1;
    --text-dim:   #7dd3fc;
    --border:     #bae6fd;

    --gradient:      linear-gradient(135deg, #0ea5e9, #06b6d4);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);

    --bg:           #f0f9ff;
    --primary-dark: #0284c7;
    --shadow:       0 4px 12px rgba(0,0,0,0.08);

    --primary-tint: #e0f2fe;
    --primary-glow: rgba(14,165,233,0.20);
}

/* ──────────────────────── MINT ────────────────────────── */
[data-theme="mint"] {
    --primary:        #10b981;
    --primary-hover:  #059669;
    --primary-light:  #34d399;
    --secondary:      #22c55e;
    --accent:         #84cc16;

    --bg-body:    #f0fdf4;
    --bg-sidebar: #ffffff;
    --bg-card:    #ffffff;
    --bg-hover:   #dcfce7;

    --text:       #14532d;
    --text-muted: #166534;
    --text-dim:   #86efac;
    --border:     #bbf7d0;

    --gradient:      linear-gradient(135deg, #10b981, #22c55e);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);

    --bg:           #f0fdf4;
    --primary-dark: #059669;
    --shadow:       0 4px 12px rgba(0,0,0,0.08);

    --primary-tint: #d1fae5;
    --primary-glow: rgba(16,185,129,0.20);
}

/* ──────────────────────── PEACH ────────────────────────── */
[data-theme="peach"] {
    --primary:        #f97316;
    --primary-hover:  #ea580c;
    --primary-light:  #fb923c;
    --secondary:      #ef4444;
    --accent:         #eab308;

    --bg-body:    #fff7ed;
    --bg-sidebar: #ffffff;
    --bg-card:    #ffffff;
    --bg-hover:   #ffedd5;

    --text:       #7c2d12;
    --text-muted: #c2410c;
    --text-dim:   #fdba74;
    --border:     #fed7aa;

    --gradient:      linear-gradient(135deg, #f97316, #ef4444);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);

    --bg:           #fff7ed;
    --primary-dark: #ea580c;
    --shadow:       0 4px 12px rgba(0,0,0,0.08);

    --primary-tint: #ffedd5;
    --primary-glow: rgba(249,115,22,0.20);
}

/* ──────────────────────── BLOSSOM ────────────────────────── */
[data-theme="blossom"] {
    --primary:        #ec4899;
    --primary-hover:  #db2777;
    --primary-light:  #f472b6;
    --secondary:      #a855f7;
    --accent:         #f43f5e;

    --bg-body:    #fdf2f8;
    --bg-sidebar: #ffffff;
    --bg-card:    #ffffff;
    --bg-hover:   #fce7f3;

    --text:       #831843;
    --text-muted: #be185d;
    --text-dim:   #f9a8d4;
    --border:     #fbcfe8;

    --gradient:      linear-gradient(135deg, #ec4899, #a855f7);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);

    --bg:           #fdf2f8;
    --primary-dark: #db2777;
    --shadow:       0 4px 12px rgba(0,0,0,0.08);

    --primary-tint: #fce7f3;
    --primary-glow: rgba(236,72,153,0.20);
}

/* ──────────────────────── MIDNIGHT ────────────────────────── */
[data-theme="midnight"] {
    --primary:        #6366f1;
    --primary-hover:  #4f46e5;
    --primary-light:  #818cf8;
    --secondary:      #8b5cf6;
    --accent:         #f59e0b;

    --bg-body:    #0f0f1a;
    --bg-sidebar: #13131f;
    --bg-card:    #1a1a2e;
    --bg-hover:   #252540;

    --text:       #f1f1f1;
    --text-muted: #9ca3af;
    --text-dim:   #6b7280;
    --border:     #2e2e4d;

    --gradient:      linear-gradient(135deg, #6366f1, #8b5cf6);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.3);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.4);

    --bg:           #0f0f1a;
    --primary-dark: #4f46e5;
    --shadow:       0 4px 12px rgba(0,0,0,0.4);

    --primary-tint: #252540;
    --primary-glow: rgba(99,102,241,0.30);
}

/* ──────────────────────── OCEAN ────────────────────────── */
[data-theme="ocean"] {
    --primary:        #0ea5e9;
    --primary-hover:  #0284c7;
    --primary-light:  #38bdf8;
    --secondary:      #06b6d4;
    --accent:         #14b8a6;

    --bg-body:    #0c1929;
    --bg-sidebar: #0f2137;
    --bg-card:    #132f4c;
    --bg-hover:   #1a4165;

    --text:       #e6f4ff;
    --text-muted: #94c4e8;
    --text-dim:   #5a9bcf;
    --border:     #1e4976;

    --gradient:      linear-gradient(135deg, #0ea5e9, #06b6d4);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.3);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.4);

    --bg:           #0c1929;
    --primary-dark: #0284c7;
    --shadow:       0 4px 12px rgba(0,0,0,0.4);

    --primary-tint: #1a4165;
    --primary-glow: rgba(14,165,233,0.30);
}

/* ──────────────────────── FOREST ────────────────────────── */
[data-theme="forest"] {
    --primary:        #22c55e;
    --primary-hover:  #16a34a;
    --primary-light:  #4ade80;
    --secondary:      #10b981;
    --accent:         #84cc16;

    --bg-body:    #0f1a14;
    --bg-sidebar: #142118;
    --bg-card:    #1a2f22;
    --bg-hover:   #254033;

    --text:       #e8f5e9;
    --text-muted: #a5d6a7;
    --text-dim:   #66bb6a;
    --border:     #2d5a3d;

    --gradient:      linear-gradient(135deg, #22c55e, #10b981);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.3);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.4);

    --bg:           #0f1a14;
    --primary-dark: #16a34a;
    --shadow:       0 4px 12px rgba(0,0,0,0.4);

    --primary-tint: #254033;
    --primary-glow: rgba(34,197,94,0.30);
}

/* ──────────────────────── SUNSET ────────────────────────── */
[data-theme="sunset"] {
    --primary:        #f97316;
    --primary-hover:  #ea580c;
    --primary-light:  #fb923c;
    --secondary:      #ef4444;
    --accent:         #eab308;

    --bg-body:    #1a1310;
    --bg-sidebar: #211915;
    --bg-card:    #2f211a;
    --bg-hover:   #402d22;

    --text:       #fff5eb;
    --text-muted: #e0c4a8;
    --text-dim:   #b8956c;
    --border:     #5a3d2b;

    --gradient:      linear-gradient(135deg, #f97316, #ef4444);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.3);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.4);

    --bg:           #1a1310;
    --primary-dark: #ea580c;
    --shadow:       0 4px 12px rgba(0,0,0,0.4);

    --primary-tint: #402d22;
    --primary-glow: rgba(249,115,22,0.30);
}

/* ──────────────────────── ROSE ────────────────────────── */
[data-theme="rose"] {
    --primary:        #ec4899;
    --primary-hover:  #db2777;
    --primary-light:  #f472b6;
    --secondary:      #a855f7;
    --accent:         #f43f5e;

    --bg-body:    #1a0f14;
    --bg-sidebar: #21131a;
    --bg-card:    #2f1a24;
    --bg-hover:   #402333;

    --text:       #fdf2f8;
    --text-muted: #f9a8d4;
    --text-dim:   #ec4899;
    --border:     #5a2d43;

    --gradient:      linear-gradient(135deg, #ec4899, #a855f7);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.3);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.4);

    --bg:           #1a0f14;
    --primary-dark: #db2777;
    --shadow:       0 4px 12px rgba(0,0,0,0.4);

    --primary-tint: #402333;
    --primary-glow: rgba(236,72,153,0.30);
}

/* ──────────────────────── SAND ────────────────────────── */
[data-theme="sand"] {
    --primary:        #ca8a04;
    --primary-hover:  #a16207;
    --primary-light:  #fbbf24;
    --secondary:      #d97706;
    --accent:         #b45309;

    --bg-body:    #fefce8;
    --bg-sidebar: #fffbeb;
    --bg-card:    #ffffff;
    --bg-hover:   #fef9c3;

    --text:       #713f12;
    --text-muted: #92400e;
    --text-dim:   #fbbf24;
    --border:     #fde68a;

    --gradient:      linear-gradient(135deg, #ca8a04, #d97706);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);

    --bg:           #fefce8;
    --primary-dark: #a16207;
    --shadow:       0 4px 12px rgba(0,0,0,0.08);

    --primary-tint: #fef9c3;
    --primary-glow: rgba(202,138,4,0.20);
}

/* ──────────────────────── LAVENDER ────────────────────────── */
[data-theme="lavender"] {
    --primary:        #7c3aed;
    --primary-hover:  #6d28d9;
    --primary-light:  #a78bfa;
    --secondary:      #8b5cf6;
    --accent:         #c084fc;

    --bg-body:    #f5f3ff;
    --bg-sidebar: #ffffff;
    --bg-card:    #ffffff;
    --bg-hover:   #ede9fe;

    --text:       #4c1d95;
    --text-muted: #6d28d9;
    --text-dim:   #a78bfa;
    --border:     #ddd6fe;

    --gradient:      linear-gradient(135deg, #7c3aed, #c084fc);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);

    --bg:           #f5f3ff;
    --primary-dark: #6d28d9;
    --shadow:       0 4px 12px rgba(0,0,0,0.08);

    --primary-tint: #ede9fe;
    --primary-glow: rgba(124,58,237,0.20);
}

/* ──────────────────────── AQUA ────────────────────────── */
[data-theme="aqua"] {
    --primary:        #0d9488;
    --primary-hover:  #0f766e;
    --primary-light:  #2dd4bf;
    --secondary:      #06b6d4;
    --accent:         #14b8a6;

    --bg-body:    #f0fdfa;
    --bg-sidebar: #ffffff;
    --bg-card:    #ffffff;
    --bg-hover:   #ccfbf1;

    --text:       #134e4a;
    --text-muted: #0f766e;
    --text-dim:   #5eead4;
    --border:     #99f6e4;

    --gradient:      linear-gradient(135deg, #0d9488, #06b6d4);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);

    --bg:           #f0fdfa;
    --primary-dark: #0f766e;
    --shadow:       0 4px 12px rgba(0,0,0,0.08);

    --primary-tint: #ccfbf1;
    --primary-glow: rgba(13,148,136,0.20);
}

/* ──────────────────────── CARBON ────────────────────────── */
[data-theme="carbon"] {
    --primary:        #e2e8f0;
    --primary-hover:  #cbd5e1;
    --primary-light:  #f1f5f9;
    --secondary:      #94a3b8;
    --accent:         #60a5fa;

    --bg-body:    #0a0a0f;
    --bg-sidebar: #111118;
    --bg-card:    #18181f;
    --bg-hover:   #22222c;

    --text:       #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim:   #64748b;
    --border:     #2a2a35;

    --gradient:      linear-gradient(135deg, #334155, #475569);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.4);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.5);

    --bg:           #0a0a0f;
    --primary-dark: #cbd5e1;
    --shadow:       0 4px 12px rgba(0,0,0,0.5);

    --primary-tint: #22222c;
    --primary-glow: rgba(226,232,240,0.15);
}

/* ──────────────────────── AURORA ────────────────────────── */
[data-theme="aurora"] {
    --primary:        #34d399;
    --primary-hover:  #10b981;
    --primary-light:  #6ee7b7;
    --secondary:      #22d3ee;
    --accent:         #a78bfa;

    --bg-body:    #030d1a;
    --bg-sidebar: #051525;
    --bg-card:    #0a1e33;
    --bg-hover:   #0f2c48;

    --text:       #e0fff8;
    --text-muted: #7eddd5;
    --text-dim:   #4fb6aa;
    --border:     #0e3a4a;

    --gradient:      linear-gradient(135deg, #34d399, #22d3ee);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.4);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.5);

    --bg:           #030d1a;
    --primary-dark: #10b981;
    --shadow:       0 4px 12px rgba(0,0,0,0.5);

    --primary-tint: #0f2c48;
    --primary-glow: rgba(52,211,153,0.30);
}

/* ──────────────────────── BURGUNDY ────────────────────────── */
[data-theme="burgundy"] {
    --primary:        #f59e0b;
    --primary-hover:  #d97706;
    --primary-light:  #fcd34d;
    --secondary:      #e11d48;
    --accent:         #fb7185;

    --bg-body:    #12060a;
    --bg-sidebar: #1c0c12;
    --bg-card:    #26101a;
    --bg-hover:   #35172a;

    --text:       #fef2f2;
    --text-muted: #fca5a5;
    --text-dim:   #f87171;
    --border:     #4c1029;

    --gradient:      linear-gradient(135deg, #f59e0b, #e11d48);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.4);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.5);

    --bg:           #12060a;
    --primary-dark: #d97706;
    --shadow:       0 4px 12px rgba(0,0,0,0.5);

    --primary-tint: #35172a;
    --primary-glow: rgba(245,158,11,0.30);
}

/* ──────────────────────── DARK (alias midnight) ────────────────────────── */
[data-theme="dark"] {
    --primary:        #6366f1;
    --primary-hover:  #4f46e5;
    --primary-light:  #818cf8;
    --secondary:      #8b5cf6;
    --accent:         #f59e0b;

    --bg-body:    #0f0f1a;
    --bg-sidebar: #13131f;
    --bg-card:    #1a1a2e;
    --bg-hover:   #252540;

    --text:       #f1f1f1;
    --text-muted: #9ca3af;
    --text-dim:   #6b7280;
    --border:     #2e2e4d;

    --gradient:      linear-gradient(135deg, #6366f1, #8b5cf6);
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.3);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.4);

    --bg:           #0f0f1a;
    --primary-dark: #4f46e5;
    --shadow:       0 4px 12px rgba(0,0,0,0.4);

    --primary-tint: #252540;
    --primary-glow: rgba(99,102,241,0.30);
}
