/**
 * 🌿 BesserGrowen Comment Engine V6 - Refined Glassmorphism Theme
 * A theme that overrides core.css to provide a sophisticated, modern glass UI.
 * Author: Gemini
 * Version: 1.0.0
 * Date: 2025-09-22
 */

:root {
    /* Redefine core variables for the glass theme */
    --ce-bg-color: transparent; /* Make the base background transparent */

    /* Glassmorphism Properties */
    --glass-blur: 22px; /* Increased blur */
    --glass-saturation: 150%; /* Increased saturation */
    
    /* Light Theme Glass */
    --glass-bg-light: rgba(255, 255, 255, 0.35); /* Reduced alpha for more transparency */
    --glass-border-light: rgba(255, 255, 255, 0.6);
    --glass-shadow-light: 0 8px 32px rgba(31, 38, 135, 0.1);

    /* Modern Gradients */
    --ce-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ce-gradient-secondary: linear-gradient(135deg, #22c55e 0%, #0ea5e9 100%);
    --ce-gradient-danger: linear-gradient(135deg, #ef4444 0%, #f472b6 100%);

    /* Assign light theme as default */
    --glass-bg: var(--glass-bg-light);
    --glass-border: var(--glass-border-light);
    --glass-shadow: var(--glass-shadow-light);
    --glass-text-primary: #0f172a;
    --glass-text-secondary: #475569;
}

/* Apply a global background to the body for the glass to look good */
body {
    background-color: #f0f2f5;
    background-image: linear-gradient(135deg, #f0f2f5 0%, #e6e9ee 100%);
}


/* Base Glass Element Style */
.ce-v6-container,
.ce-v6-comment-card,
.ce-v6-auth-tabs,
.ce-v6-schnellstarter,
.ce-v6-comment-form,
.ce-v6-avatar-card,
.ce-v6-form-group input,
.ce-v6-btn-secondary,
.ce-v6-user-dropdown,
.ce-v6-thread-panel {
    gap: 4px;
    padding: 2px 8px;
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    font-size: 0.7rem;
    color: var(--glass-text-primary);
}

.ce-v6-comment-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.24));
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: 0 35px 60px rgba(15, 23, 42, 0.16);
    min-height: 22px;
}
.ce-v6-comment-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
    border-color: rgba(255, 255, 255, 0.52);
}
.ce-v6-typing-indicator {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.25));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    color: var(--glass-text-primary);
}
.ce-v6-typing-avatar {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

.ce-v6-reaction-btn,
.ce-v6-comment-btn {
    background: var(--reaction-bg, rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(var(--glass-blur)) saturate(calc(var(--glass-saturation) * 0.8));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(calc(var(--glass-saturation) * 0.8));
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
    color: var(--glass-text-primary);
}
.ce-v6-reaction-btn.ce-v6-reaction-active {
    box-shadow: 0 30px 52px rgba(59, 130, 246, 0.28);
    color: #fff;
}
.ce-v6-comment-btn {
    color: var(--glass-text-primary);
}

/* Noise and Satin Sheen */
.ce-v6-container::before,
.ce-v6-comment-card::before,
.ce-v6-schnellstarter::before,
.ce-v6-comment-form::before,
.ce-v6-avatar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Satin sheen effect */
 .ce-v6-container::after,
.ce-v6-comment-card::after,
.ce-v6-schnellstarter::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    pointer-events: none;
    border-radius: var(--ce-radius-xl);
}


/* Override specific text colors */
.ce-v6-title,
.ce-v6-username,
.ce-v6-title-text,
.ce-v6-comment-username,
.ce-v6-form-group label {
    color: var(--glass-text-primary);
}

.ce-v6-subtitle,
.ce-v6-user-level,
.ce-v6-comment-meta,
.ce-v6-guest-note,
.ce-v6-level-req {
    color: var(--glass-text-secondary);
}
.ce-v6-comment-meta .ce-v6-meta-pill {
    background: rgba(59, 130, 246, 0.22);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: rgba(236, 252, 255, 0.92);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.18);
}
.ce-v6-meta-pill .ce-v6-meta-label {
    color: rgba(191, 219, 254, 0.85);
}
.ce-v6-meta-pill .ce-v6-meta-value {
    color: rgba(224, 231, 255, 0.98);
}

.ce-v6-live-clock {
    --live-tone: var(--ce-accent, #34c759);
    --live-tone-rgb: 52, 199, 89;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(var(--live-tone-rgb), 0.32);
    background: rgba(var(--live-tone-rgb), 0.12);
    color: var(--live-tone);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
    position: relative;
    isolation: isolate;
    min-height: 24px;
}

.ce-v6-live-clock .ce-v6-live-readout {
    display: grid;
    position: relative;
    min-width: 44px;
}

.ce-v6-live-clock .ce-v6-live-counter,
.ce-v6-live-clock .ce-v6-live-absolute {
    grid-area: 1 / 1;
    transition: opacity 0.2s ease, transform 0.22s ease;
    white-space: nowrap;
}

.ce-v6-live-clock .ce-v6-live-counter {
    opacity: 1;
}

.ce-v6-live-clock .ce-v6-live-absolute {
    opacity: 0;
    transform: translateY(6px);
    color: rgba(15, 23, 42, 0.65);
}

.ce-v6-live-clock .ce-v6-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-tone);
    box-shadow: 0 0 0 rgba(var(--live-tone-rgb), 0.5);
    animation: ce-live-pulse 1.8s ease-in-out infinite;
}

.ce-v6-live-clock:hover,
.ce-v6-live-clock:focus-visible,
.ce-v6-live-clock.ce-v6-live-expanded,
.ce-v6-live-clock[data-live-expanded="true"] {
    background: rgba(var(--live-tone-rgb), 0.18);
    border-color: rgba(var(--live-tone-rgb), 0.45);
    box-shadow: 0 6px 20px -8px rgba(var(--live-tone-rgb), 0.55);
    transform: translateY(-1px);
    color: var(--live-tone);
}

.ce-v6-live-clock:hover .ce-v6-live-counter,
.ce-v6-live-clock:focus-visible .ce-v6-live-counter,
.ce-v6-live-clock.ce-v6-live-expanded .ce-v6-live-counter,
.ce-v6-live-clock[data-live-expanded="true"] .ce-v6-live-counter {
    opacity: 0;
    transform: translateY(-6px);
}

.ce-v6-live-clock:hover .ce-v6-live-absolute,
.ce-v6-live-clock:focus-visible .ce-v6-live-absolute,
.ce-v6-live-clock.ce-v6-live-expanded .ce-v6-live-absolute,
.ce-v6-live-clock[data-live-expanded="true"] .ce-v6-live-absolute {
    opacity: 1;
    transform: translateY(0);
}

.ce-v6-live-clock:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--live-tone-rgb), 0.24);
}

.ce-v6-live-clock .ce-v6-live-absolute::before {
    content: '•';
    margin-right: 4px;
    font-size: 0.7rem;
    color: var(--live-tone);
    opacity: 0.75;
}

.ce-v6-comment-card.freshness-ultra .ce-v6-live-clock {
    --live-tone: var(--fresh-ultra);
    --live-tone-rgb: 255, 0, 255;
}

.ce-v6-comment-card.freshness-very .ce-v6-live-clock {
    --live-tone: var(--fresh-very);
    --live-tone-rgb: 160, 32, 240;
}

.ce-v6-comment-card.freshness-relevant .ce-v6-live-clock {
    --live-tone: var(--fresh-relevant);
    --live-tone-rgb: 0, 255, 213;
}

.ce-v6-comment-card.freshness-fading .ce-v6-live-clock {
    --live-tone: var(--fresh-fading);
    --live-tone-rgb: 138, 199, 255;
}

.ce-v6-comment-card.freshness-old .ce-v6-live-clock {
    --live-tone: var(--fresh-old);
    --live-tone-rgb: 170, 160, 192;
}

.ce-v6-comment-card.freshness-moss .ce-v6-live-clock {
    --live-tone: var(--fresh-moss);
    --live-tone-rgb: 103, 122, 106;
}

@keyframes ce-live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--live-tone-rgb), 0.45); opacity: 0.85; }
    50% { box-shadow: 0 0 0 6px rgba(var(--live-tone-rgb), 0); opacity: 1; }
}

@media (max-width: 640px) {
    .ce-v6-live-clock {
        padding: 2px 8px;
        gap: 4px;
        font-size: 0.68rem;
        letter-spacing: 0.02em;
    }
    .ce-v6-live-clock .ce-v6-live-readout {
        min-width: 34px;
    }
}


/* Override input placeholder color */
.ce-v6-form-group input::placeholder,
.ce-v6-comment-textarea::placeholder {
    color: var(--glass-text-secondary);
    opacity: 0.8;
}

/* Override borders that should be glassy */
.ce-v6-header,
.ce-v6-comment-textarea,
.ce-v6-reply-text {
    border-color: var(--glass-border);
}

/* Override backgrounds */
.ce-v6-comment-textarea,
.ce-v6-reply-text {
    background: rgba(0,0,0,0.05);
}

.ce-v6-thread-panel {
    background: var(--glass-bg);
}

/* Selected/Active States */
.ce-v6-avatar-card.selected {
    background: var(--ce-gradient-primary);
    border-color: rgba(99, 102, 241, 0.5);
    color: white;
}
.ce-v6-avatar-card.selected .ce-v6-avatar-name,
.ce-v6-avatar-card.selected .ce-v6-level-req {
    color: white;
}

.ce-v6-tab-btn.active {
    background: var(--ce-gradient-primary);
    color: white;
}

/* Remove box-shadow from secondary buttons to make them look flatter */
.ce-v6-btn-secondary,
.ce-v6-reaction-btn,
.ce-v6-comment-btn {
    box-shadow: none;
}

.ce-v6-btn-secondary:hover,
.ce-v6-reaction-btn:hover,
.ce-v6-comment-btn:hover {
    background: var(--glass-bg-light);
}

/* Sort bar */
.ce-v6-sortbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; margin-bottom:12px; border-radius:12px; }
.ce-v6-sort-tabs { display:flex; gap:8px; }
.ce-v6-sort-btn { padding:8px 12px; border-radius:999px; border:1px solid var(--glass-border); background:transparent; cursor:pointer; color:var(--glass-text-primary); }
.ce-v6-sort-btn.active { background: var(--ce-gradient-primary); color:#fff; border-color: transparent; }
.ce-v6-filters { display:flex; align-items:center; gap:10px; }
.ce-v6-toggle { display:flex; align-items:center; gap:6px; cursor:pointer; user-select:none; }

/* Comment menu (three dots) */
.ce-v6-comment-menu { position:relative; }
.ce-v6-comment-menu .ce-v6-btn-icon { border-radius:8px; }
.ce-v6-menu-dropdown { position:absolute; top:28px; right:0; display:none; min-width:180px; padding:6px; border-radius:12px; background:var(--glass-bg); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); border:1px solid var(--glass-border); box-shadow: var(--glass-shadow); z-index:5; }
.ce-v6-menu-dropdown.show { display:block; }
.ce-v6-menu-item { padding:8px 10px; border-radius:8px; display:flex; gap:8px; align-items:center; cursor:pointer; color:var(--glass-text-primary); }
.ce-v6-menu-item:hover { background: rgba(0,0,0,0.06); }

/* Edited badge and history */
.ce-v6-edited-badge { margin-left:8px; font-size:12px; background:transparent; color:var(--glass-text-secondary); border:1px dashed var(--glass-border); border-radius:999px; padding:2px 8px; cursor:pointer; }
.ce-v6-history-list { margin:8px 0 0; padding:8px; border:1px solid var(--glass-border); border-radius:12px; background:var(--glass-bg); }
.ce-v6-history-item { padding:6px 8px; border-bottom:1px dashed var(--glass-border); }
.ce-v6-history-item:last-child { border-bottom:none; }
.ce-v6-history-meta { font-size:12px; color:var(--glass-text-secondary); margin-bottom:4px; }
.ce-v6-history-text { font-size:14px; }

/* Level badge + XP bar */
.ce-v6-level-badge { 
    font-size:12px; 
    font-weight: 600;
    padding:3px 10px; 
    border-radius:999px; 
    margin-left:6px; 
    border:0;
    color: #fff;
    transition: all .3s ease;
}
.ce-v6-level-beginner { background: linear-gradient(135deg, #9ca3af, #6b7280); box-shadow: 0 2px 8px rgba(107, 114, 128, 0.4); }
.ce-v6-level-elite { background: var(--ce-gradient-secondary); box-shadow: 0 2px 12px rgba(14, 165, 233, 0.4); }
.ce-v6-level-legend { 
    background: var(--ce-gradient-primary); 
    box-shadow: 0 2px 16px rgba(118, 75, 162, 0.5); 
    animation: pulse-legend 2.5s infinite;
}

@keyframes pulse-legend {
    0% { transform: scale(1); box-shadow: 0 2px 16px rgba(118, 75, 162, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 4px 24px rgba(118, 75, 162, 0.7); }
    100% { transform: scale(1); box-shadow: 0 2px 16px rgba(118, 75, 162, 0.5); }
}

.ce-v6-xpbar { 
    width:140px; 
    height:8px; 
    border-radius:999px; 
    background:rgba(0,0,0,0.1); 
    overflow:hidden; 
    margin-top:8px; 
    border: 1px solid var(--glass-border);
}
.ce-v6-xpbar-fill { 
    height:100%; 
    background: var(--ce-gradient-secondary);
    box-shadow:0 0 12px rgba(14, 165, 233, 0.6); 
    transition: width 0.5s ease-in-out;
}

/* Avatar glow */
.ce-v6-avatar-glow-elite { box-shadow:0 0 0 3px rgba(14, 165, 233, 0.4), 0 0 16px rgba(14, 165, 233, 0.4); border-radius:50%; }
.ce-v6-avatar-glow-legend { 
    box-shadow:0 0 0 3px rgba(118, 75, 162, 0.5), 0 0 24px rgba(118, 75, 162, 0.5); 
    border-radius:50%; 
    animation: pulse-legend-avatar 2.5s infinite;
}

@keyframes pulse-legend-avatar {
    0% { box-shadow:0 0 0 3px rgba(118, 75, 162, 0.5), 0 0 24px rgba(118, 75, 162, 0.5); }
    50% { box-shadow:0 0 0 3px rgba(118, 75, 162, 0.7), 0 0 32px rgba(118, 75, 162, 0.7); }
    100% { box-shadow:0 0 0 3px rgba(118, 75, 162, 0.5), 0 0 24px rgba(118, 75, 162, 0.5); }
}


/* Reply thread line */
.ce-v6-comment-reply { position:relative; margin-left:0; padding-left:0; }
.ce-v6-comment-reply::before { display:none; }

@keyframes flow-gradient {
    0% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

/* Votes visual punch */
.ce-v6-vote-up.voted { color:#22c55e; font-weight: bold; }
.ce-v6-vote-down.voted { color:#ef4444; font-weight: bold; }
.ce-v6-comment-votes .ce-v6-comment-btn { transition:transform .15s cubic-bezier(0.2, 0.8, 0.7, 1.5), filter .15s ease, color .15s ease; }
.ce-v6-comment-votes .ce-v6-comment-btn:hover { 
    transform:translateY(-2px) scale(1.05); 
}
.ce-v6-vote-up:hover { filter:drop-shadow(0 2px 8px rgba(255,165,0,0.7)); color: #ffA500; }
.ce-v6-vote-down:hover { transform:translateY(2px) scale(1.05); filter:drop-shadow(0 2px 8px rgba(139,0,0,0.7)); color: #8B0000; }

.ce-v6-comment-votes .ce-v6-comment-btn {
    font-size: 20px; /* Larger icons */
    padding: 5px 10px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

.ce-v6-vote-up:hover {
    transform: scale(1.3) rotate(-15deg);
    color: #ff4500;
    filter: drop-shadow(0 0 10px #ff4500);
}

.ce-v6-vote-down:hover {
    transform: scale(1.3) rotate(15deg);
    color: #6b7280;
    filter: drop-shadow(0 0 8px #6b7280);
}

.ce-v6-vote-count {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--glass-text-primary);
    min-width: 2ch;
    text-align: center;
}

/* Reactions pop effect */
.ce-v6-reaction-btn { transition: transform .15s cubic-bezier(0.2, 0.8, 0.7, 1.5); }
.ce-v6-reaction-btn:hover { transform: scale(1.1); }
.ce-v6-reaction-btn.reacted {
    transform: scale(1.1);
    background: var(--ce-gradient-primary);
    border-color: transparent;
}
.ce-v6-reaction-btn.reacted .ce-v6-reaction-count {
    color: #fff;
}

/* Top comment highlight */
.ce-v6-top-comment { outline:1px solid rgba(168,85,247,0.3); box-shadow:0 8px 28px rgba(168,85,247,0.15); }

/* Transitions for smoother UI */
.ce-v6-comment-card,
.ce-v6-schnellstarter,
.ce-v6-comment-form,
.ce-v6-avatar-card,
.ce-v6-sort-btn,
.ce-v6-btn-primary,
.ce-v6-btn-secondary,
.ce-v6-reaction-btn,
.ce-v6-comment-btn,
.ce-v6-menu-item {
    transition: all 0.2s ease-in-out;
}

.ce-v6-avatar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(31, 38, 135, 0.2);
}

.ce-v6-sort-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Primary button hover glow */
.ce-v6-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(118, 75, 162, 0.6);
    transform: translateY(-2px);
}

/* 🌿 New Freshness System V2 - Time-Color Map & Corner Overlay 🌿 */

:root {
    --fresh-ultra: #FF00FF;
    --fresh-very: #A020F0;
    --fresh-relevant: #00FFD5;
    --fresh-fading: #8AC7FF;
    --fresh-old: #AAA0C0;
    --fresh-moss: #677a6a; /* For the BesserGrowen branding twist */
}

/* Corner Overlay - The Dopamine Trigger */
.ce-v6-comment-card::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 0 15px 0 8px;
    background-color: transparent;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 0 0 rgba(255,255,255,0);
    z-index: 2;
}

/* Central Freshness Badge Styling */
.ce-v6-freshness-badge {
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 8px;
    transition: all 0.5s ease-in-out;
    line-height: 1.2;
    border: none;
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.ce-v6-freshness-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ce-v6-freshness-label {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.ce-v6-freshness-sub {
    font-size: 0.7rem;
    opacity: 0.82;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.ce-v6-freshness-accent {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.88;
    font-weight: 700;
}

.ce-v6-freshness-accent:empty {
    display: none;
}

.ce-v6-freshness-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.ce-v6-hot-badge {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    min-width: auto;
}

.ce-v6-hot-badge .ce-v6-freshness-dot,
.ce-v6-hot-badge .ce-v6-freshness-sub {
    display: none;
}

.ce-v6-hot-badge .ce-v6-freshness-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* --- Time-Color Mapping --- */

/* 🚀 Ultra-Fresh (0–5 Min) */
.ce-v6-comment-card.freshness-ultra::after {
    background-color: var(--fresh-ultra);
    box-shadow: 0 0 15px var(--fresh-ultra), 0 0 25px rgba(255, 255, 255, 0.7);
    animation: pulse-strong 1.2s infinite;
}
.ce-v6-freshness-badge.freshness-ultra {
    background-color: var(--fresh-ultra);
    box-shadow: 0 0 10px var(--fresh-ultra);
    animation: pulse-strong-badge 1.2s infinite;
}

/* 🔥 Sehr frisch (5–15 Min) */
.ce-v6-comment-card.freshness-very::after {
    background-color: var(--fresh-very);
    box-shadow: 0 0 12px var(--fresh-very);
    animation: pulse-medium 2s infinite;
}
.ce-v6-freshness-badge.freshness-very {
    background-color: var(--fresh-very);
    box-shadow: 0 0 8px var(--fresh-very);
    animation: pulse-medium-badge 2s infinite;
}

/* 🌿 Noch relevant (15–30 Min) */
.ce-v6-comment-card.freshness-relevant::after {
    background-color: var(--fresh-relevant);
    box-shadow: 0 0 10px var(--fresh-relevant);
    animation: glow-shift 3s infinite alternate;
}
.ce-v6-freshness-badge.freshness-relevant {
    background-color: var(--fresh-relevant);
    color: #003c3c;
    text-shadow: none;
    box-shadow: 0 0 8px var(--fresh-relevant);
}

/* 🌫️ Abklingend (30–45 Min) */
.ce-v6-comment-card.freshness-fading::after {
    background-color: var(--fresh-fading);
    box-shadow: 0 0 5px var(--fresh-fading);
}
.ce-v6-freshness-badge.freshness-fading {
    background-color: var(--fresh-fading);
    color: #002a4d;
    text-shadow: none;
}

/* 🪦 Alt (45–60 Min) — keep card vivid, only badge indicates age */
.ce-v6-comment-card.freshness-old::after { background-color: var(--fresh-old); }
.ce-v6-comment-card.freshness-old { opacity: 0.98; filter: none; }
.ce-v6-freshness-badge.freshness-old { background-color: var(--fresh-old); color: #3d3548; text-shadow: none; }

/* 🌱 Moos-Effekt (>60 Min) — very subtle dim, no grayscale */
.ce-v6-comment-card.freshness-moss { opacity: 0.96; filter: none; }
.ce-v6-comment-card.freshness-moss::after { background-color: var(--fresh-moss); opacity: 0.5; }
.ce-v6-freshness-badge.freshness-moss {
    background-color: var(--fresh-moss);
    color: #dce3dd;
    text-shadow: none;
    opacity: 0.8;
}


/* --- Animations --- */

@keyframes pulse-strong {
    0% { transform: scale(1); box-shadow: 0 0 15px var(--fresh-ultra), 0 0 25px rgba(255, 255, 255, 0.7); }
    50% { transform: scale(1.2); box-shadow: 0 0 25px var(--fresh-ultra), 0 0 40px rgba(255, 255, 255, 1); }
    100% { transform: scale(1); box-shadow: 0 0 15px var(--fresh-ultra), 0 0 25px rgba(255, 255, 255, 0.7); }
}
@keyframes pulse-strong-badge {
    50% { transform: scale(1.05); }
}

@keyframes pulse-medium {
    0% { transform: scale(1); box-shadow: 0 0 12px var(--fresh-very); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px var(--fresh-very); }
    100% { transform: scale(1); box-shadow: 0 0 12px var(--fresh-very); }
}
@keyframes pulse-medium-badge {
    50% { transform: scale(1.03); }
}

@keyframes glow-shift {
    from { box-shadow: 0 0 10px var(--fresh-relevant); }
    to { box-shadow: 0 0 18px var(--fresh-relevant), 0 0 4px #fff; }
}

/* Special Badge: Top in last hour */
.ce-v6-freshness-badge.fresh-top-hour {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
    animation: pulse-medium 1.8s infinite;
}
