/**
 * Touch — Panel Themes
 * 10 built-in display themes for .tch-widget-panel
 *
 * Each theme targets:
 *   .tch-widget-panel.tch-panel-theme-{slug}
 *
 * To add a new theme:
 *   1. Register it in class-tch-panel-themes.php → get_all_themes()
 *   2. Add a CSS block here following the same pattern.
 *
 * @package Touch
 * @since   1.1.0
 */

/* ============================================================
   THEME 1 — Classic  (default)
   Clean white card with soft shadow
   ============================================================ */

.tch-widget-panel.tch-panel-theme-classic {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: none;
    color: #1f2937;
}

.tch-panel-theme-classic .tch-welcome-text p {
    color: #111827;
    font-weight: 700;
}

.tch-panel-theme-classic .tch-channel {
    background: #f9fafb;
    border-radius: 10px;
    border: none;
    transition: background 0.2s, transform 0.2s;
}

.tch-panel-theme-classic .tch-channel:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

/* ============================================================
   THEME 2 — Dark
   Deep charcoal background with neon-blue accents
   ============================================================ */

.tch-widget-panel.tch-panel-theme-dark {
    background: #1a1f2e;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
}

.tch-panel-theme-dark .tch-welcome-text {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.tch-panel-theme-dark .tch-welcome-text p {
    color: #f1f5f9;
    font-weight: 700;
}

.tch-panel-theme-dark .tch-widget-channels::-webkit-scrollbar-thumb,
.tch-panel-theme-dark .tch-channels-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.tch-panel-theme-dark .tch-widget-channels::-webkit-scrollbar-thumb:hover,
.tch-panel-theme-dark .tch-channels-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.tch-panel-theme-dark .tch-widget-channels,
.tch-panel-theme-dark .tch-channels-list {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.tch-panel-theme-dark .tch-channel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.tch-panel-theme-dark .tch-channel:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(4px);
}

.tch-panel-theme-dark .tch-channel-title {
    color: #f1f5f9;
}

.tch-panel-theme-dark .tch-channel-description {
    color: #94a3b8;
}

.tch-panel-theme-dark .tch-channel-arrow {
    color: #475569;
}

/* ============================================================
   THEME 3 — Glass
   Frosted-glass morphism with backdrop blur
   ============================================================ */

.tch-widget-panel.tch-panel-theme-glass {
    background: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.22);
    color: #1e293b;
}

.tch-panel-theme-glass .tch-welcome-text {
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

.tch-panel-theme-glass .tch-welcome-text p {
    color: #1e293b;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.tch-panel-theme-glass .tch-channel {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #1e293b;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.tch-panel-theme-glass .tch-channel:hover {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.15);
    transform: translateX(4px);
}

.tch-panel-theme-glass .tch-channel-description {
    color: #475569;
}

/* ============================================================
   THEME 4 — Gradient
   Purple-to-indigo gradient header with white channel body
   ============================================================ */

.tch-widget-panel.tch-panel-theme-gradient {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.35);
    border: none;
    overflow: hidden;
    color: #1f2937;
}

/* Gradient header band behind the welcome text */
.tch-panel-theme-gradient .tch-welcome-text {
    margin: calc(var(--tch-spacing-md) * -1) calc(var(--tch-spacing-md) * -1) var(--tch-spacing-md);
    padding: 20px var(--tch-spacing-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
    border-radius: 0;
}

.tch-panel-theme-gradient .tch-welcome-text p {
    color: #ffffff;
    font-weight: 700;
    font-size: var(--tch-welcome-size, 16px);
}

.tch-panel-theme-gradient .tch-channel {
    background: #f8f7ff;
    border-radius: 10px;
    border-left: 3px solid #667eea;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.tch-panel-theme-gradient .tch-channel:hover {
    background: #ede9fe;
    border-left-color: #764ba2;
    transform: translateX(5px);
}

.tch-panel-theme-gradient .tch-channel-title {
    color: #3730a3;
}

.tch-panel-theme-gradient .tch-channel-description {
    color: #6d5bd0;
}

/* ============================================================
   THEME 5 — Soft
   Pastel blue-lavender tones — friendly and approachable
   ============================================================ */

.tch-widget-panel.tch-panel-theme-soft {
    background: linear-gradient(160deg, #f0f4ff 0%, #faf5ff 100%);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.18);
    border: 1.5px solid rgba(165, 180, 252, 0.45);
    color: #312e81;
}

.tch-panel-theme-soft .tch-welcome-text {
    border-bottom-color: rgba(165, 180, 252, 0.3);
}

.tch-panel-theme-soft .tch-welcome-text p {
    color: #3730a3;
    font-weight: 700;
}

.tch-panel-theme-soft .tch-channel {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    border: 1.5px solid rgba(165, 180, 252, 0.3);
    color: #4338ca;
    transition: all 0.25s;
}

.tch-panel-theme-soft .tch-channel:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #a5b4fc;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.tch-panel-theme-soft .tch-channel-title {
    color: #3730a3;
}

.tch-panel-theme-soft .tch-channel-description {
    color: #6366f1;
}

/* ============================================================
   THEME 6 — Minimal
   Flat, borderless channels — pure content focus
   ============================================================ */

.tch-widget-panel.tch-panel-theme-minimal {
    background: #fafafa;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.tch-panel-theme-minimal .tch-welcome-text {
    border-bottom-color: #e5e7eb;
}

.tch-panel-theme-minimal .tch-welcome-text p {
    color: #111827;
    font-weight: 600;
    font-size: var(--tch-welcome-size, 14px);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tch-panel-theme-minimal .tch-channel {
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    padding: 14px 4px;
    transition: background 0.15s;
}

.tch-panel-theme-minimal .tch-channels-list .tch-channel:last-child {
    border-bottom: none;
}

.tch-panel-theme-minimal .tch-channel:hover {
    background: #f9fafb;
    transform: none;
}

.tch-panel-theme-minimal .tch-channel-icon {
    border-radius: 8px;
    width: var(--tch-channel-icon-size, 36px);
    height: var(--tch-channel-icon-size, 36px);
}
    height: 36px;
}

.tch-panel-theme-minimal .tch-channel-title {
    font-size: var(--tch-channel-title-size, 13px);
    font-weight: 600;
    color: #1f2937;
}

.tch-panel-theme-minimal .tch-channel-description {
    font-size: var(--tch-channel-desc-size, 11px);
    color: #9ca3af;
}

/* ============================================================
   THEME 7 — Card
   Each channel is an elevated floating card
   ============================================================ */

.tch-widget-panel.tch-panel-theme-card {
    background: #f1f5f9;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    color: #1e293b;
}

.tch-panel-theme-card .tch-welcome-text {
    border-bottom: none;
    margin-bottom: 4px;
}

.tch-panel-theme-card .tch-welcome-text p {
    color: #0f172a;
    font-weight: 700;
    font-size: var(--tch-welcome-size, 16px);
}

.tch-panel-theme-card .tch-channels-list {
    gap: 10px;
}

.tch-panel-theme-card .tch-channel {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border: none;
    transition: box-shadow 0.25s, transform 0.25s;
    padding: 14px;
}

.tch-panel-theme-card .tch-channel:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-3px);
    background: #ffffff;
}

.tch-panel-theme-card .tch-channel-title {
    font-weight: 700;
    color: #0f172a;
}

.tch-panel-theme-card .tch-channel-description {
    color: #64748b;
}

/* ============================================================
   THEME 8 — Neon
   Dark background with glowing neon channel accents
   ============================================================ */

.tch-widget-panel.tch-panel-theme-neon {
    background: #0d0d1a;
    border-radius: 18px;
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.22),
                inset 0 0 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: #e0f7ff;
}

.tch-panel-theme-neon .tch-welcome-text {
    border-bottom-color: rgba(0, 217, 255, 0.2);
}

.tch-panel-theme-neon .tch-welcome-text p {
    color: #00d9ff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.7);
    letter-spacing: 0.04em;
}

.tch-panel-theme-neon .tch-channels-list {
    gap: 8px;
}

.tch-panel-theme-neon .tch-channel {
    background: rgba(0, 217, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.18);
    color: #b2f0ff;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.tch-panel-theme-neon .tch-channel:hover {
    background: rgba(0, 217, 255, 0.12);
    border-color: rgba(0, 217, 255, 0.55);
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.25);
    transform: translateX(4px);
}

.tch-panel-theme-neon .tch-channel-icon {
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.35);
}

.tch-panel-theme-neon .tch-channel-title {
    color: #e0f7ff;
    font-weight: 600;
}

.tch-panel-theme-neon .tch-channel-description {
    color: #67c9e0;
}

.tch-panel-theme-neon .tch-channel-arrow {
    color: rgba(0, 217, 255, 0.5);
}

.tch-panel-theme-neon .tch-widget-channels::-webkit-scrollbar-thumb,
.tch-panel-theme-neon .tch-channels-list::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.25);
}

.tch-panel-theme-neon .tch-widget-channels::-webkit-scrollbar-thumb:hover,
.tch-panel-theme-neon .tch-channels-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
}

.tch-panel-theme-neon .tch-widget-channels,
.tch-panel-theme-neon .tch-channels-list {
    scrollbar-color: rgba(0, 217, 255, 0.25) transparent;
}

/* ============================================================
   THEME 9 — Nature
   Earthy greens and warm tones for eco-friendly brands
   ============================================================ */

.tch-widget-panel.tch-panel-theme-nature {
    background: linear-gradient(160deg, #e8f5e9 0%, #f9fbe7 100%);
    border-radius: 20px;
    box-shadow: 0 6px 28px rgba(76, 175, 80, 0.22);
    border: 1.5px solid rgba(76, 175, 80, 0.25);
    color: #1b5e20;
}

.tch-panel-theme-nature .tch-welcome-text {
    border-bottom-color: rgba(76, 175, 80, 0.2);
}

.tch-panel-theme-nature .tch-welcome-text p {
    color: #2e7d32;
    font-weight: 700;
}

.tch-panel-theme-nature .tch-channel {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    border: 1.5px solid rgba(129, 199, 132, 0.4);
    color: #33691e;
    transition: all 0.25s;
}

.tch-panel-theme-nature .tch-channel:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #81c784;
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.2);
    transform: translateX(4px);
}

.tch-panel-theme-nature .tch-channel-icon {
    border-radius: 10px;
}

.tch-panel-theme-nature .tch-channel-title {
    color: #1b5e20;
    font-weight: 600;
}

.tch-panel-theme-nature .tch-channel-description {
    color: #558b2f;
}

.tch-panel-theme-nature .tch-channel-arrow {
    color: #81c784;
}

/* ============================================================
   THEME 10 — Sunset
   Warm orange-to-pink gradient header with cream channel rows
   ============================================================ */

.tch-widget-panel.tch-panel-theme-sunset {
    background: #fff8f0;
    border-radius: 22px;
    box-shadow: 0 10px 36px rgba(255, 107, 107, 0.28);
    border: none;
    overflow: hidden;
    color: #431407;
}

/* Gradient top-bar behind welcome text */
.tch-panel-theme-sunset .tch-welcome-text {
    margin: calc(var(--tch-spacing-md) * -1) calc(var(--tch-spacing-md) * -1) var(--tch-spacing-md);
    padding: 22px var(--tch-spacing-md);
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
    border-bottom: none;
}

.tch-panel-theme-sunset .tch-welcome-text p {
    color: #ffffff;
    font-weight: 700;
    font-size: var(--tch-welcome-size, 16px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.tch-panel-theme-sunset .tch-channels-list {
    gap: 8px;
}

.tch-panel-theme-sunset .tch-channel {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    border: 1.5px solid rgba(254, 202, 87, 0.35);
    color: #7c2d12;
    transition: all 0.25s;
}

.tch-panel-theme-sunset .tch-channel:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #fca5a5;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.22);
    transform: translateX(5px);
}

.tch-panel-theme-sunset .tch-channel-title {
    color: #9a3412;
    font-weight: 600;
}

.tch-panel-theme-sunset .tch-channel-description {
    color: #c2410c;
}

.tch-panel-theme-sunset .tch-channel-arrow {
    color: #fdba74;
}

/* ============================================================
   RTL overrides — flip translateX directions
   ============================================================ */

.tch-widget.tch-rtl .tch-panel-theme-classic .tch-channel:hover,
.tch-widget.tch-rtl .tch-panel-theme-dark .tch-channel:hover,
.tch-widget.tch-rtl .tch-panel-theme-glass .tch-channel:hover,
.tch-widget.tch-rtl .tch-panel-theme-soft .tch-channel:hover,
.tch-widget.tch-rtl .tch-panel-theme-neon .tch-channel:hover,
.tch-widget.tch-rtl .tch-panel-theme-nature .tch-channel:hover,
.tch-widget.tch-rtl .tch-panel-theme-sunset .tch-channel:hover {
    transform: translateX(-4px);
}

.tch-widget.tch-rtl .tch-panel-theme-gradient .tch-channel:hover {
    transform: translateX(-5px);
}

.tch-widget.tch-rtl .tch-panel-theme-gradient .tch-channel {
    border-left: none;
    border-right: 3px solid #667eea;
}

.tch-widget.tch-rtl .tch-panel-theme-gradient .tch-channel:hover {
    border-right-color: #764ba2;
}

/* ============================================================
   Reduced-motion — disable all theme transitions/transforms
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .tch-widget-panel[class*="tch-panel-theme-"] .tch-channel {
        transition: none !important;
        transform: none !important;
    }
}
