/* =============================================
   Ideas-KN — main.css
   CSS Design System
   
   ΔΟΜΗ:
   1. CSS Custom Properties (Design Tokens)
   2. Reset & Base
   3. Typography
   4. Layout
   5. Components (Header, Footer, Buttons, Cards)
   6. Utilities
   7. Responsive Breakpoints
   ============================================= */


/* =============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   Όλες οι τιμές του design ζουν εδώ.
   Το Customizer panel θα αλλάζει μόνο αυτές.
   ============================================= */
:root {

    /* --- Χρώματα Brand — Επιμελητήριο Κιλκίς --- */
    --color-brand-navy:     #182643;   /* κύριο navy brand color */
    --color-brand-gold:     #C99D17;   /* gold accent */

    /* Primary — navy στο light mode */
    --color-primary:        #182643;
    --color-primary-dark:   #0f1928;
    --color-primary-light:  #2a3f6b;

    /* Accent / Gold — CTAs, highlights */
    --color-accent:         #C99D17;
    --color-accent-dark:    #a8840f;
    --color-accent-light:   #e0b932;

    /* Secondary */
    --color-secondary:      #2a3f6b;
    --color-secondary-dark: #182643;

    /* Semantic */
    --color-success:        #16a34a;
    --color-warning:        #d97706;
    --color-danger:         #dc2626;
    --color-info:           #2563eb;

    /* Backgrounds — Light Theme (default) */
    --color-bg:             #f8f9fc;
    --color-bg-card:        #ffffff;
    --color-bg-subtle:      #eef2f8;

    /* Κείμενο — Light Theme */
    --color-text:           #182643;
    --color-text-muted:     #4a5a7a;
    --color-text-light:     #7d90b2;
    --color-text-inverse:   #ffffff;

    /* Borders — Light Theme */
    --color-border:         #d0daea;
    --color-border-focus:   #C99D17;

    /* --- Typography --- */
    --font-heading:         'Manrope', system-ui, -apple-system, sans-serif;
    --font-body:            'Manrope', system-ui, -apple-system, sans-serif;
    --font-mono:            'Consolas', 'Monaco', monospace;

    /* Μεγέθη (modular scale ~1.25) */
    --text-xs:              0.75rem;    /* 12px */
    --text-sm:              0.875rem;   /* 14px */
    --text-base:            1rem;       /* 16px */
    --text-md:              1.125rem;   /* 18px */
    --text-lg:              1.25rem;    /* 20px */
    --text-xl:              1.5rem;     /* 24px */
    --text-2xl:             1.875rem;   /* 30px */
    --text-3xl:             2.25rem;    /* 36px */
    --text-4xl:             3rem;       /* 48px */

    /* Βάρη */
    --font-weight-normal:   400;
    --font-weight-medium:   500;
    --font-weight-semibold: 600;
    --font-weight-bold:     700;

    /* Line heights */
    --leading-tight:        1.25;
    --leading-normal:       1.6;
    --leading-relaxed:      1.75;

    /* Letter spacing */
    --tracking-tight:       -0.02em;
    --tracking-normal:      0;
    --tracking-wide:        0.05em;

    /* --- Spacing (8px base grid) --- */
    --space-1:              0.25rem;   /* 4px */
    --space-2:              0.5rem;    /* 8px */
    --space-3:              0.75rem;   /* 12px */
    --space-4:              1rem;      /* 16px */
    --space-5:              1.25rem;   /* 20px */
    --space-6:              1.5rem;    /* 24px */
    --space-8:              2rem;      /* 32px */
    --space-10:             2.5rem;    /* 40px */
    --space-12:             3rem;      /* 48px */
    --space-16:             4rem;      /* 64px */
    --space-20:             5rem;      /* 80px */
    --space-24:             6rem;      /* 96px */

    /* --- Layout --- */
    --container-sm:         640px;
    --container-md:         768px;
    --container-lg:         1024px;
    --container-xl:         1200px;
    --container-padding:    1.5rem;    /* padding εκατέρωθεν σε mobile */

    /* --- Borders & Radius --- */
    --radius-sm:            4px;
    --radius-md:            8px;       /* base radius */
    --radius-lg:            12px;
    --radius-xl:            16px;
    --radius-full:          9999px;    /* pill shape */

    --border-width:         1px;
    --border-style:         solid;

    /* --- Shadows — Light Theme (lighter, navy-tinted) --- */
    --shadow-sm:            0 1px 3px  rgba(24,38,67,0.08);
    --shadow-md:            0 4px 12px rgba(24,38,67,0.12);
    --shadow-lg:            0 8px 24px rgba(24,38,67,0.16);
    --shadow-xl:            0 16px 48px rgba(24,38,67,0.22);

    /* --- Transitions --- */
    --transition-fast:      150ms ease;
    --transition-base:      250ms ease;
    --transition-slow:      400ms ease;

    /* --- Z-index scale --- */
    --z-base:               0;
    --z-above:              10;
    --z-dropdown:           100;
    --z-sticky:             200;
    --z-modal:              1000;
    --z-toast:              2000;
}


/* ============================================================
   DARK THEME  —  [data-theme="dark"]
   Ο χρήστης επιλέγει dark mode μέσω toggle στο header.
   Η επιλογή αποθηκεύεται σε localStorage.
   ============================================================ */
[data-theme="dark"] {

    /* Primary → gold (navy δεν φαίνεται σε dark backgrounds) */
    --color-primary:        #C99D17;
    --color-primary-dark:   #a8840f;
    --color-primary-light:  #e0b932;

    --color-accent:         #C99D17;
    --color-accent-dark:    #a8840f;
    --color-accent-light:   #e0b932;

    --color-secondary:      #3a5080;
    --color-secondary-dark: #2a3f6b;

    /* Backgrounds */
    --color-bg:             #0d1624;
    --color-bg-card:        #182643;
    --color-bg-subtle:      #1e2f56;

    /* Text */
    --color-text:           #f0f4fc;
    --color-text-muted:     #9aaccb;
    --color-text-light:     #5d78a8;
    --color-text-inverse:   #ffffff;

    /* Borders */
    --color-border:         #243558;
    --color-border-focus:   #C99D17;

    /* Shadows */
    --shadow-sm:            0 1px 3px  rgba(0,0,0,0.30);
    --shadow-md:            0 4px 12px rgba(0,0,0,0.40);
    --shadow-lg:            0 8px 24px rgba(0,0,0,0.50);
    --shadow-xl:            0 16px 48px rgba(0,0,0,0.60);
}


/* =============================================
   2. RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font: inherit;
}

/* Accessibility: focus visible */
:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
}


/* =============================================
   3. TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-text);
    letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

p:last-child {
    margin-bottom: 0;
}

strong { font-weight: var(--font-weight-bold); }
em     { font-style: italic; }

small  { font-size: var(--text-sm); }

/* =============================================
   4. LAYOUT
   ============================================= */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }
.container--lg { max-width: var(--container-lg); }

/* .site-main — αντικαταστάθηκε από .app-main */


/* =============================================
   5. COMPONENTS
   ============================================= */

/* .site-header / .site-footer / .nav-menu — αντικαταστάθηκαν από .app-topbar / .app-footer */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border-radius: var(--radius-md);
    border: var(--border-width) var(--border-style) transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast),
                color var(--transition-fast),
                border-color var(--transition-fast),
                box-shadow var(--transition-fast);
    white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-inverse);
}

.btn--secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
    border-color: var(--color-secondary);
}
.btn--secondary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    color: var(--color-text-inverse);
}

.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border-color: var(--color-accent);
}
.btn--accent:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-text-inverse);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn--outline:hover {
    background-color: var(--color-bg-subtle);
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-text-muted);
    border-color: transparent;
}
.btn--ghost:hover {
    background-color: var(--color-bg-subtle);
    color: var(--color-text);
}

/* Button sizes */
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-md); }

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Card --- */
.card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: var(--border-width) var(--border-style) var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card__image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card__body {
    padding: var(--space-6);
}

.card__title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.card__title a {
    color: inherit;
    text-decoration: none;
}
.card__title a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.card__footer {
    padding: var(--space-4) var(--space-6);
    border-top: var(--border-width) var(--border-style) var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

/* --- Badge / Tag --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-sm);
    line-height: 1.4;
    white-space: nowrap;
}

/* Light mode badge colors */
.badge--primary  { background: rgba(24,38,67,0.08);   color: #182643; border: 1px solid rgba(24,38,67,0.20); }
.badge--success  { background: rgba(22,163,74,0.10);  color: #15803d; border: 1px solid rgba(22,163,74,0.25); }
.badge--warning  { background: rgba(201,157,23,0.12); color: #92720a; border: 1px solid rgba(201,157,23,0.30); }
.badge--danger   { background: rgba(220,38,38,0.10);  color: #b91c1c; border: 1px solid rgba(220,38,38,0.25); }
.badge--muted    { background: rgba(0,0,0,0.05);      color: #4a5a7a; border: 1px solid var(--color-border);  }

/* Dark mode badge overrides */
[data-theme="dark"] .badge--primary  { background: rgba(201,157,23,0.15); color: #e0b932; border-color: rgba(201,157,23,0.35); }
[data-theme="dark"] .badge--success  { background: rgba(22,163,74,0.12);  color: #6ee7b7; border-color: rgba(22,163,74,0.30);  }
[data-theme="dark"] .badge--warning  { background: rgba(201,157,23,0.12); color: #fcd34d; border-color: rgba(201,157,23,0.30); }
[data-theme="dark"] .badge--danger   { background: rgba(220,38,38,0.12);  color: #fca5a5; border-color: rgba(220,38,38,0.30);  }
[data-theme="dark"] .badge--muted    { background: rgba(255,255,255,0.05); color: #9aaccb; border-color: var(--color-border);  }
[data-theme="dark"] .badge--secondary { background: rgba(255,255,255,0.06); color: #9aaccb; border-color: var(--color-border); }
[data-theme="dark"] .badge--info       { background: rgba(96,165,250,0.12);  color: #93c5fd; border-color: rgba(96,165,250,0.30); }


/* --- Form elements --- */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--color-text);
    background-color: var(--color-bg-card);
    border: var(--border-width) var(--border-style) var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(46,134,193,0.15);
}

.form-control::placeholder {
    color: var(--color-text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- Divider --- */
.divider {
    border: none;
    border-top: var(--border-width) var(--border-style) var(--color-border);
    margin-block: var(--space-8);
}

/* --- Section --- */
.section {
    padding-block: var(--space-16);
}

.section--subtle {
    background-color: var(--color-bg-subtle);
}

.section__header {
    margin-bottom: var(--space-10);
    text-align: center;
}

.section__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 60ch;
    margin-inline: auto;
}

/* --- Grid --- */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Alert / Notice --- */
.notice {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}

.notice--success { background-color: #eafaf1; border-color: var(--color-success); color: #1e8449; }
.notice--warning { background-color: #fef9e7; border-color: var(--color-warning); color: #b7770d; }
.notice--danger  { background-color: #fdedec; border-color: var(--color-danger);  color: #c0392b; }
.notice--info    { background-color: #eaf4fb; border-color: var(--color-info);    color: #1a6fa8; }

/* Dark mode notice overrides */
[data-theme="dark"] .notice--success { background-color: rgba(22,163,74,0.12);  color: #6ee7b7; }
[data-theme="dark"] .notice--warning { background-color: rgba(217,119,6,0.12);  color: #fcd34d; }
[data-theme="dark"] .notice--danger  { background-color: rgba(220,38,38,0.12);  color: #fca5a5; }
[data-theme="dark"] .notice--info    { background-color: rgba(37,99,235,0.12);   color: #93c5fd; }

/* Form notice dark overrides */
[data-theme="dark"] .form-notice--success { background: rgba(22,163,74,0.12);  color: #6ee7b7; border-color: #16a34a; }
[data-theme="dark"] .form-notice--error   { background: rgba(220,38,38,0.12);  color: #fca5a5; border-color: #dc2626; }


/* =============================================
   6. UTILITIES
   ============================================= */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--color-text-muted); }
.text-sm      { font-size: var(--text-sm); }
.text-lg      { font-size: var(--text-lg); }
.font-bold    { font-weight: var(--font-weight-bold); }

.mt-auto      { margin-top: auto; }
.mb-0         { margin-bottom: 0; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2        { gap: var(--space-2); }
.gap-4        { gap: var(--space-4); }

.hidden       { display: none !important; }
.sr-only      { /* screen-reader only */
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.overflow-hidden { overflow: hidden; }
.w-full          { width: 100%; }


/* =============================================
   7. RESPONSIVE BREAKPOINTS
   
   Mobile-first: γράφουμε για mobile
   και προσαρμόζουμε για μεγαλύτερες οθόνες.
   
   Breakpoints:
   sm:  640px  (μεγάλα κινητά)
   md:  768px  (tablet portrait)
   lg:  1024px (tablet landscape / μικρό laptop)
   xl:  1200px (desktop)
   ============================================= */

/* Mobile defaults (< 640px) */
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

.grid--2,
.grid--3,
.grid--4 { grid-template-columns: 1fr; }



/* sm: 640px+ */
@media (min-width: 640px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }

    .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

/* md: 768px+ */
@media (min-width: 768px) {
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }

    .grid--3 { grid-template-columns: repeat(2, 1fr); }


}

/* lg: 1024px+ */
@media (min-width: 1024px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* xl: 1200px+ */
@media (min-width: 1200px) {
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}


/* ==========================================================================
   SINGLE IDEA — Template styles
   single-idea.php
   ========================================================================== */

/* --- Layout: 2-column grid (main + sidebar) --- */
.single-idea-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-block: var(--space-10);
}

@media (min-width: 1024px) {
    .single-idea-layout {
        grid-template-columns: 1fr 320px;
        align-items: start;
    }
}

/* --- Breadcrumb --- */
.idea-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: var(--space-5) var(--space-8) 0;
    margin-bottom: var(--space-4);
}

.idea-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.idea-breadcrumb a:hover {
    text-decoration: underline;
}

.idea-breadcrumb__sep {
    color: var(--color-border);
    margin-inline: var(--space-1);
}

/* --- Idea Article --- */
.idea-single {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* --- Header --- */
.idea-header {
    padding: var(--space-8);
    border-bottom: 2px solid var(--color-bg);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-primary) 4%, transparent),
        transparent
    );
}

.idea-header__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.idea-header__title {
    font-size: var(--text-3xl);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    line-height: 1.25;
}

@media (min-width: 768px) {
    .idea-header__title {
        font-size: var(--text-4xl);
    }
}

/* --- Meta bar --- */
.idea-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.idea-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.idea-meta-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.idea-meta-item a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.idea-meta-item a:hover {
    text-decoration: underline;
}

/* --- ΕΣΠΑ Meta item (στο header single-idea) --- */
.idea-espa-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: var(--space-3);
}
.idea-espa-badge .idea-meta-icon {
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* --- Voting Area --- */
.idea-voting-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-6) var(--space-8);
    background: color-mix(in srgb, var(--color-primary) 4%, var(--color-bg-card));
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.idea-voting-inner {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.idea-voting-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.idea-voting-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-text);
    font-family: var(--font-heading);
}

.idea-voting-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.idea-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-6);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.idea-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.15));
}

.idea-vote-btn:active {
    transform: translateY(0);
}

.idea-vote-btn--login {
    font-size: var(--text-sm);
}

.idea-voting-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 0;
}

/* --- Main Content --- */
.idea-content {
    padding: var(--space-8);
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-text);
}

.idea-content p { margin-bottom: var(--space-5); }
.idea-content h2, .idea-content h3 { color: var(--color-primary-dark); margin-top: var(--space-8); }
.idea-content ul, .idea-content ol { padding-left: var(--space-6); margin-bottom: var(--space-5); }
.idea-content li { margin-bottom: var(--space-2); }
.idea-content img { border-radius: var(--radius-md); max-width: 100%; }
.idea-content blockquote {
    border-left: 4px solid var(--color-primary-light);
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-6);
    background: color-mix(in srgb, var(--color-primary) 5%, transparent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

/* --- Tags --- */
.idea-tags {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-8);
    border-top: 1px solid var(--color-border);
}

.idea-tags__label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    padding-top: 2px;
}

.idea-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.idea-tag-link {
    text-decoration: none;
    font-size: var(--text-xs);
    transition: opacity var(--transition-base);
}

.idea-tag-link:hover {
    opacity: 0.75;
}

/* --- Badge variants (extra που χρειάζεται το template) --- */
.badge--secondary { background: rgba(74,90,122,0.08);    color: #3d4f72; border: 1px solid rgba(74,90,122,0.20); }
.badge--info    { background: rgba(29,78,216,0.08);  color: #1d4ed8; border: 1px solid rgba(29,78,216,0.20);  }

/* --- Sidebar --- */
.single-idea-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* --- Info Panel --- */
.idea-info-panel__title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.idea-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

.idea-info-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-2) var(--space-4);
    align-items: center;
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--color-bg);
    font-size: var(--text-sm);
}

.idea-info-row:last-child {
    border-bottom: none;
}

.idea-info-row dt {
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.idea-info-row dd {
    margin: 0;
    color: var(--color-text);
}

.idea-info-row dd a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.idea-info-row dd a:hover {
    text-decoration: underline;
}

/* --- Share Panel --- */
.idea-share-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.idea-share-btn {
    flex: 1;
    justify-content: center;
}

/* --- Back Button --- */
.idea-back-btn {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   END: SINGLE IDEA
   ========================================================================== */

/* ==========================================================================
   Voting Button States (v1.4.0)
   ========================================================================== */

/* Κατάσταση: ψηφισμένο */
.idea-vote-btn.is-voted {
    background-color: var(--color-success);
    border-color:     var(--color-success);
    color:            #fff;
}

/* Hover πάνω σε ψηφισμένο: υπονοεί αφαίρεση */
.idea-vote-btn.is-voted:hover {
    background-color: var(--color-danger);
    border-color:     var(--color-danger);
}

/* Κατά τη φόρτωση AJAX */
.idea-vote-btn.is-loading {
    opacity: 0.6;
    cursor:  wait;
}

/* --- Tooltip ----------------------------------------------------------------
   Εμφανίζεται πάνω από το κουμπί όταν ο χρήστης έχει ψηφίσει.
   Χρησιμοποιεί CSS attr() για να διαβάζει το title attribute του κουμπιού.
   --------------------------------------------------------------------------- */
.idea-vote-btn {
    position: relative;
}

.idea-vote-btn.is-voted::after {
    content:          attr(data-tooltip);
    position:         absolute;
    bottom:           calc(100% + 8px);
    left:             50%;
    transform:        translateX(-50%);
    background:       var(--color-gray-800, #1f2937);
    color:            #fff;
    font-size:        0.75rem;
    white-space:      nowrap;
    padding:          4px 10px;
    border-radius:    4px;
    pointer-events:   none;
    opacity:          0;
    transition:       opacity 0.15s ease;
    z-index:          10;
}

/* Μικρό τριγωνάκι κάτω από το tooltip */
.idea-vote-btn.is-voted::before {
    content:        '';
    position:       absolute;
    bottom:         calc(100% + 2px);
    left:           50%;
    transform:      translateX(-50%);
    border:         5px solid transparent;
    border-top-color: var(--color-gray-800, #1f2937);
    pointer-events: none;
    opacity:        0;
    transition:     opacity 0.15s ease;
    z-index:        10;
}

.idea-vote-btn.is-voted:hover::after,
.idea-vote-btn.is-voted:hover::before {
    opacity: 1;
}

/* ==========================================================================
   Archive / Loop (v1.4.0)
   ========================================================================== */

.archive-idea-header {
    padding:       var(--space-8) 0 var(--space-6);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-6);
    display:       flex;
    flex-wrap:     wrap;
    align-items:   center;
    gap:           var(--space-4);
}

.archive-idea-header__title {
    font-size:   var(--text-3xl);
    font-weight: 700;
    flex:        1 1 100%;
}

.archive-idea-header__desc {
    color:   var(--color-text-muted);
    flex:    1 1 auto;
    margin:  0;
}

/* --- Φίλτρα ---------------------------------------------------------------- */
.idea-filters {
    display:     flex;
    flex-wrap:   wrap;
    gap:         var(--space-3);
    align-items: flex-end;
    margin-bottom: var(--space-6);
    padding:     var(--space-4);
    background:  var(--color-surface);
    border:      1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.idea-filters__group {
    display:        flex;
    flex-direction: column;
    gap:            var(--space-1);
}

.idea-filters__label {
    font-size:   var(--text-sm);
    font-weight: 600;
    color:       var(--color-text-muted);
}

.idea-filters__select {
    padding:       var(--space-2) var(--space-3);
    border:        1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background:    var(--color-bg);
    color:         var(--color-text);
    font-size:     var(--text-sm);
    min-width:     180px;
}

/* --- Grid ------------------------------------------------------------------ */
.idea-grid {
    display:               grid;
    grid-template-columns: 1fr;
    gap:                   var(--space-5);
}

@media (min-width: 640px) {
    .idea-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .idea-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Κάρτα ιδέας ----------------------------------------------------------- */
.idea-card {
    display:        flex;
    flex-direction: column;
    height:         100%;
    transition:     box-shadow 0.2s ease, transform 0.2s ease;
}

.idea-card:hover {
    box-shadow: var(--shadow-md);
    transform:  translateY(-2px);
}

.idea-card__body {
    flex: 1;
    display:        flex;
    flex-direction: column;
    gap:            var(--space-3);
}

.idea-card__badges {
    display:   flex;
    flex-wrap: wrap;
    gap:       var(--space-1);
}

.idea-card__title {
    font-size:   var(--text-lg);
    font-weight: 700;
    margin:      0;
    line-height: 1.3;
}

.idea-card__link {
    color:           var(--color-text);
    text-decoration: none;
}

.idea-card__link:hover {
    color: var(--color-primary);
}

.idea-card__meta {
    display:     flex;
    flex-wrap:   wrap;
    gap:         var(--space-3);
    font-size:   var(--text-sm);
    color:       var(--color-text-muted);
}

.idea-card__terms {
    display:   flex;
    flex-wrap: wrap;
    gap:       var(--space-1);
}

.idea-card__excerpt {
    font-size:   var(--text-sm);
    color:       var(--color-text-muted);
    line-height: 1.5;
    /* Περιορισμός σε 3 γραμμές */
    display:            -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow:           hidden;
}

.idea-card__footer {
    padding-top:  var(--space-3);
    border-top:   1px solid var(--color-border);
    margin-top:   auto;
}

/* Compact voting μέσα στην κάρτα */
.idea-card__footer .idea-voting-area {
    margin: 0;
}

.idea-card__footer .idea-voting-inner {
    gap: var(--space-2);
}

.idea-card__footer .idea-voting-note {
    display: none; /* Κρύβουμε το note στις κάρτες */
}

/* --- Empty state ----------------------------------------------------------- */
.idea-loop__empty {
    text-align: center;
    padding:    var(--space-12) var(--space-4);
    color:      var(--color-text-muted);
}


/* ==========================================================================
   Submit Idea — Landing Section (guest view)
   ========================================================================== */

.submit-landing {
    padding-block: var(--space-16);
}

.submit-landing__hero {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: var(--space-12);
}

.submit-landing__icon {
    display: block;
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.submit-landing__title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.submit-landing__desc {
    font-size: var(--text-md);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* Benefits grid */
.submit-landing__benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.submit-landing__benefit {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
}

.benefit-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: var(--space-3);
}

.submit-landing__benefit h3 {
    font-size: var(--text-md);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.submit-landing__benefit p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* CTA buttons */
.submit-landing__cta {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}


/* ==========================================================================
   Idea Submission Form
   ========================================================================== */

.idea-form {
    max-width: 720px;
    margin-top: var(--space-8);
}

/* Κάθε πεδίο της φόρμας */
.form-field {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.form-required {
    color: var(--color-accent);
    margin-left: var(--space-1);
}

.form-input,
.form-textarea,
.form-select {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 30, 80, 162), 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
    cursor: pointer;
}

.form-hint {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
}

/* Fieldset για radio groups */
.form-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.form-radio {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-radio span:first-of-type {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
}

.form-radio .form-hint {
    margin-top: 0;
}

/* Submit button area */
.form-actions {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

/* Μηνύματα επιτυχίας / σφάλματος */
.form-notice {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    border-left: 4px solid;
}

.form-notice--success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}

.form-notice--success strong {
    display: block;
    margin-bottom: var(--space-1);
}

.form-notice--error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
}


/* ==========================================================================
   App Layout — Global (header.php + footer.php)
   ========================================================================== */

/* Βασικό app wrap */
body.ikn-app {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    margin: 0;
    display: block; /* override flex από base */
}

.app-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── TOP BAR ─────────────────────────────────────────── */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    height: 56px;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 0 var(--space-6);
    flex-shrink: 0;
}

/* Logo */
.topbar__logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--color-text);
    flex-shrink: 0;
}

.topbar__logo:hover {
    text-decoration: none;
    color: var(--color-primary);
}

/* Logo image */
.topbar__logo-img {
    display:    block;
    height:     40px;
    width:      auto;
    max-width:  130px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Light/dark logo switching */
.topbar__logo-img--dark  { display: none; }
.topbar__logo-img--light { display: block; }

[data-theme="dark"] .topbar__logo-img--light { display: none; }
[data-theme="dark"] .topbar__logo-img--dark  { display: block; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .topbar__logo-img--light { display: none; }
    :root:not([data-theme="light"]) .topbar__logo-img--dark  { display: block; }
}

/* Search */
.topbar__search {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.topbar__search-icon {
    position: absolute;
    left: var(--space-3);
    color: var(--color-text-muted);
    pointer-events: none;
}

.topbar__search-input {
    width: 100%;
    height: 36px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 var(--space-4) 0 calc(var(--space-3) + 16px + var(--space-2));
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    cursor: not-allowed;
    transition: border-color var(--transition-fast);
}

.topbar__search-input::placeholder {
    color: var(--color-text-light);
}

/* Auth */
.topbar__auth {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
    margin-left: auto;
}

.topbar__user {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.topbar__avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border);
    flex-shrink: 0;
}

.topbar__username {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar__logout {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.topbar__logout:hover {
    color: var(--color-danger);
    text-decoration: none;
}

/* ─── APP BODY (sidebar + main) ───────────────────────── */
.app-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* ─── SIDEBAR ─────────────────────────────────────────── */
.app-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: transparent;
    border-right: none;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 56px;
    height: auto;
    align-self: flex-start;
    padding: var(--space-4);
}

.sidebar__nav {
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-brand-navy);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(24, 38, 67, 0.10);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* sidebar__nav — merged into .app-sidebar block above */

/* Group */
.sidebar__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.sidebar__group:last-child {
    border-bottom: none;
}

.sidebar__group-label {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--color-brand-navy);
    padding: 0 var(--space-2);
    margin-bottom: var(--space-1);
}

/* Nav items */
.sidebar__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
}

.sidebar__item:hover {
    background: var(--color-bg-subtle);
    color: #182643;
    text-decoration: none;
}

.sidebar__item.is-active {
    background: rgba(201, 157, 23, 0.20);
    color: #182643;
    font-weight: var(--font-weight-semibold);
}

.sidebar__icon {
    flex-shrink: 0;
    color: currentColor;
}

/* Sub items (κατηγορίες / άξονες) */
.sidebar__item--sub {
    font-size: var(--text-sm);
    padding: var(--space-1) var(--space-3);
    font-weight: var(--font-weight-normal);
}

.sidebar__count {
    margin-left: auto;
    font-size: var(--text-xs);
    color: var(--color-text-light);
    background: var(--color-bg-subtle);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
}

.sidebar__item.is-active .sidebar__count {
    background: rgba(24, 38, 67, 0.15);
    color: #182643;
}

/* Sidebar footer */
.sidebar__footer {
    padding: var(--space-3) var(--space-2) var(--space-2);
    border-top: none;
}

.sidebar__submit-btn {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

/* ─── MAIN CONTENT ────────────────────────────────────── */
.app-main {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* ── Kilkis map watermark — bottom-right decoration ──── */
.app-main::after {
    content: '';
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 480px;
    height: 480px;
    background-image: url('../img/kilkis-map-brown.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

[data-theme="dark"] .app-main::after {
    background-image: url('../img/kilkis-map-white.png');
    opacity: 0.05;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .app-main::after {
        background-image: url('../img/kilkis-map-white.png');
        opacity: 0.05;
    }
}

body.home .app-main::after {
    display: none;
}

/* Layout variants — controlled via Customizer per page */
.app-main--full  { padding: 0; }
.app-main--boxed { padding: var(--main-py, 24px) var(--main-px, 32px); }

/* Page content wrapper (archive, single κλπ) */
.page-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

/* Archive pages use full layout — page-content gets its own centering */
.app-main--full .page-content {
    max-width: var(--ikn-content-width, 1200px);
    margin: 0;
    padding: var(--space-6);
}

/* ─── FOOTER BAR ──────────────────────────────────────── */
.app-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-card);
    padding: var(--space-4) var(--space-6);
}

.app-footer__copy {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
}

.app-footer__copy a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.app-footer__copy a:hover {
    color: #ffffff;
}

/* ─── PAGE TOPBAR (archive header) ───────────────────── */
.ctopbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.ctopbar__title {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0;
}

/* ─── TABS ────────────────────────────────────────────── */
.ctabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-6);
}

.ctabs__tab {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.ctabs__tab:hover {
    color: var(--color-text);
    text-decoration: none;
}

.ctabs__tab.is-active {
    color: #182643;
    border-bottom-color: var(--color-accent);
    font-weight: var(--font-weight-semibold);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .app-sidebar {
        display: none;
    }

    .app-main {
        padding: var(--space-4);
    }

    .topbar__search {
        display: none;
    }

    .topbar__username {
        display: none;
    }
}

/* ============================================================
   ΕΣΠΑ CORNER RIBBON  (top-right, ::before fold + ::after label)
   ============================================================ */

.idea-card {
    position: relative;
    overflow: visible; /* bar extends slightly above card top */
}

/* ΕΣΠΑ pill — starts inside card, right edge protrudes ~8px past card */
.idea-card--has-espa::after {
    content: attr(data-espa-label);
    position: absolute;
    top: 0.75rem;
    left: 50%;
    right: -8px;              /* extends 8px past card right edge */
    padding: 0.3rem 1rem 0.3rem 0.75rem;
    background: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px 0 0 4px; /* rounded left, straight right (goes off-card) */
    z-index: 2;
}

/* ============================================================
   STATUS / VISIBILITY — bullet + text  (replaces colored badges)
   ============================================================ */

.status-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

.status-text::before {
    content: '●';
    font-size: 0.55em;
    flex-shrink: 0;
    line-height: 1;
}

.status-text.badge--success::before  { color: var(--color-success); }
.status-text.badge--warning::before  { color: var(--color-warning); }
.status-text.badge--danger::before   { color: var(--color-danger);  }
.status-text.badge--info::before     { color: var(--color-info);    }
.status-text.badge--secondary::before { color: var(--color-text-muted); }
/* Status-text: κλειδώνουμε το neutral χρώμα σε dark mode
   (το [data-theme="dark"] .badge--success θα αντικαθιστούσε αλλιώς) */
[data-theme="dark"] .status-text { color: var(--color-text-muted); }


/* ============================================================
   CIRCLE-CUT VOTE INDICATOR  (card context only)
   ============================================================ */

.idea-voting-area--card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    position: relative;
    padding-top: var(--space-3);
}

/* Circle is now positioned relative to .idea-vote-wrapper, not the footer */
.idea-vote-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.idea-vote-circle {
    position: absolute;
    top: -11px;
    right: -11px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    box-shadow: 0 0 0 3px var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.idea-vote-circle__number {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
}

/* Card footer: normal padding now that circle doesn't hang from border */
.idea-card__footer {
    position: relative;
    padding-top: var(--space-4);
}

/* ============================================================
   CARD-SPECIFIC OVERRIDES (appended)
   ============================================================ */

/* Bar clearance: push card body content below the horizontal bar */
.idea-card--has-espa .card__body {
    padding-top: 2.6rem;
}

/* Remove indigo tint background from voting area inside cards */
.idea-voting-area--card {
    background: none;
    border: none;
    padding: 0;
}

/* Card non-voted button: outline with brighter border */
.idea-card__footer .idea-vote-btn:not(.is-voted) {
    border-color: var(--color-text-muted);   /* #a8adc9 — clearly visible */
    color: var(--color-text-muted);
}
.idea-card__footer .idea-vote-btn:not(.is-voted):hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

/* Non-voted wrapper: circle border matches button border.
   The box-shadow (card-bg ring) covers the button border at overlap,
   and the circle border takes over — same puzzle mechanism as voted. */
.idea-vote-wrapper:not(.is-voted) .idea-vote-circle {
    border-color: var(--color-text-muted); /* same as non-voted button border */
    /* box-shadow inherits base: 0 0 0 3px var(--color-bg-card) — do NOT override */
}
.idea-vote-wrapper:not(.is-voted) .idea-vote-circle__number {
    color: var(--color-text-muted);
}

/* Logged-out state: vote count in a small rounded pill (no circle, no button) */
.idea-vote-count-text {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    background: none;
}

/* =============================================================================
   THEME TOGGLE BUTTON
   Κουμπί εναλλαγής dark/light στο topbar.
   • Light mode → εμφανίζεται φεγγάρι (κλικ → dark)
   • Dark mode  → εμφανίζεται ήλιος  (κλικ → light)
   ============================================================================= */

.topbar__theme-toggle {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           32px;
    height:          32px;
    padding:         0;
    background:      transparent;
    border:          1px solid var(--color-border);
    border-radius:   var(--radius-md);
    color:           var(--color-text-muted);
    cursor:          pointer;
    flex-shrink:     0;
    transition:      color            var(--transition-base),
                     border-color     var(--transition-base),
                     background-color var(--transition-base);
}

.topbar__theme-toggle:hover {
    color:            var(--color-text);
    border-color:     var(--color-accent);
    background-color: var(--color-bg-subtle);
}

.topbar__theme-toggle:focus-visible {
    outline:        2px solid var(--color-border-focus);
    outline-offset: 2px;
}

/* Ποιο icon φαίνεται ανάλογα με το active theme */
/* Light mode → φαίνεται το φεγγάρι (για να πας σε dark) */
.theme-icon--sun  { display: none;  }
.theme-icon--moon { display: block; }

/* Dark mode → φαίνεται ο ήλιος (για να επιστρέψεις σε light) */
[data-theme="dark"] .theme-icon--sun  { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none;  }

/* =============================================================================
   DARK MODE SIDEBAR & TABS OVERRIDES
   Ρητές τιμές για dark mode — τα CSS variables δεν επαρκούν εδώ γιατί
   το --color-brand-navy (#182643) παραμένει navy ακόμα και σε dark mode.
   ============================================================================= */

[data-theme="dark"] .sidebar__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

[data-theme="dark"] .sidebar__item.is-active {
    background: rgba(201, 157, 23, 0.25);
    color: #ffffff;
}

[data-theme="dark"] .sidebar__item.is-active .sidebar__count {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ctabs: λευκό κείμενο + gold underline σε dark mode */
[data-theme="dark"] .ctabs__tab {
    color: var(--color-text-muted);
}

[data-theme="dark"] .ctabs__tab:hover {
    color: #ffffff;
}

[data-theme="dark"] .ctabs__tab.is-active {
    color: #ffffff;
    border-bottom-color: var(--color-accent);
}

/* =============================================================================
   STATUS-TEXT BADGE OVERRIDES
   Οι badges "Εγκεκριμένη", "Δημόσια" κλπ. δεν πρέπει ποτέ να έχουν
   background/border — μόνο bullet + neutral text.
   Χρησιμοποιούμε .status-text.badge--* (specificity 0-2-0) και
   [data-theme="dark"] .status-text.badge--* (0-2-1) για να νικήσουμε
   τα badge overrides σε κάθε mode.
   ============================================================================= */

.status-text.badge--primary,
.status-text.badge--success,
.status-text.badge--warning,
.status-text.badge--danger,
.status-text.badge--info,
.status-text.badge--secondary,
.status-text.badge--muted {
    background: none;
    border:      none;
    color:       var(--color-text-muted);
    padding:     0;
}

[data-theme="dark"] .status-text.badge--primary,
[data-theme="dark"] .status-text.badge--success,
[data-theme="dark"] .status-text.badge--warning,
[data-theme="dark"] .status-text.badge--danger,
[data-theme="dark"] .status-text.badge--info,
[data-theme="dark"] .status-text.badge--secondary,
[data-theme="dark"] .status-text.badge--muted {
    background: none;
    border:      none;
    color:       var(--color-text-muted);
}


/* ============================================================
   PORTAL HEADER
   ============================================================ */
.portal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.portal-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    max-width: var(--ikn-content-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 64px;
}

.portal-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.portal-header__logo-img {
    display: block;
    height: 40px;
    width: auto;
}

[data-theme="dark"] .portal-header__logo-img {
    background: #ffffff;
    border-radius: 4px;
    padding: 3px 6px;
}

/* Portal Nav */
.portal-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex: 1;
}

.portal-nav__item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.portal-nav__item:hover {
    color: var(--color-text);
    background: rgba(0,0,0,0.05);
}

[data-theme="dark"] .portal-nav__item:hover {
    background: rgba(255,255,255,0.07);
}

.portal-nav__item.is-active {
    color: var(--color-text);
    font-weight: 600;
}

/* "Συμμετέχω" — CTA pill στο nav */
.portal-nav__item--cta {
    background: var(--color-primary);
    color: #ffffff;
    padding: 6px 16px;
    font-weight: 600;
}

.portal-nav__item--cta:hover {
    background: #4f46e5;
    color: #ffffff;
}

/* Portal Header Actions (δεξιά: search, toggle, auth) */
.portal-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
    margin-left: auto;
}

.portal-header__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.portal-header__icon-btn:hover:not([disabled]) {
    color: var(--color-text);
    background: rgba(0,0,0,0.06);
}

[data-theme="dark"] .portal-header__icon-btn:hover:not([disabled]) {
    background: rgba(255,255,255,0.09);
}

.portal-header__icon-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.portal-header__user {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.portal-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================================
   PORTAL BODY — page wrapper for non-app pages
   ============================================================ */
.ikn-portal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portal-section__inner {
    max-width: var(--ikn-content-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.portal-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin: 0 0 var(--space-10);
}

/* ============================================================
   PORTAL HERO
   ============================================================ */
.portal-hero {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0;
}

/* Overlay: σκοτεινό αριστερά → φωτεινό δεξιά */
.portal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.72) 25%,
        rgba(0, 0, 0, 0.30) 55%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 1;
}

/* Dark theme: overlay slightly darker */
[data-theme="dark"] .portal-hero::before {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.78) 25%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.08) 100%
    );
}

.portal-hero__content {
    max-width: 580px;
}

.portal-hero__title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 var(--space-5);
    letter-spacing: -0.02em;
}

.portal-hero__subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 var(--space-8);
    max-width: 480px;
}

.portal-hero__ctas {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.portal-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.portal-hero__trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.72);
}

.portal-hero__image {
    display: none;
}

.portal-hero__image-placeholder {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(99,102,241,0.03) 100%);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 20px;
}

/* ============================================================
   PORTAL FEATURES
   ============================================================ */
.portal-features {
    padding: var(--space-16) 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Decorative map — light theme */
.portal-features::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -2%;
    transform: translateY(-50%);
    width: 38%;
    aspect-ratio: 1 / 1;
    background-image: url('../img/kilkis-map-brown.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

/* Dark theme map */
[data-theme="dark"] .portal-features::before {
    background-image: url('../img/kilkis-map-white.png');
    opacity: 0.06;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .portal-features::before {
        background-image: url('../img/kilkis-map-white.png');
        opacity: 0.06;
    }
}

/* Content above the map */
.portal-features .portal-section__inner {
    position: relative;
    z-index: 1;
}

.portal-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--space-5);
}

.portal-feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--space-7);
    transition: box-shadow 0.2s, transform 0.2s;
}

.portal-feature-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

[data-theme="dark"] .portal-feature-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

.portal-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99,102,241,0.1);
    color: #6366f1;
    margin-bottom: var(--space-4);
}

.portal-feature-card__icon--green  { background: rgba(16,185,129,0.1);  color: #10b981; }
.portal-feature-card__icon--orange { background: rgba(249,115,22,0.1);  color: #f97316; }
.portal-feature-card__icon--purple { background: rgba(139,92,246,0.1);  color: #8b5cf6; }

.portal-feature-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-2);
}

.portal-feature-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0 0 var(--space-4);
}

.portal-feature-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.portal-feature-card__link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ============================================================
   PORTAL CTA BANNER
   ============================================================ */
.portal-cta-banner {
    background: linear-gradient(120deg, #182643 0%, #1b3168 100%);
    padding: var(--space-14) 0;
}

.portal-cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.portal-cta-banner__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 var(--space-2);
}

.portal-cta-banner__sub {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.72);
    margin: 0;
    line-height: 1.55;
}

/* btn--accent — χρυσό κουμπί για το CTA banner */
.btn--accent {
    background: var(--color-accent, #c99d17);
    color: #ffffff;
    border-color: transparent;
}

.btn--accent:hover {
    background: #b08812;
    color: #ffffff;
}

/* ============================================================
   PORTAL STATS
   ============================================================ */
.portal-stats {
    padding: var(--space-16) 0;
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.portal-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--space-4);
}

.portal-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-6) var(--space-4);
}

.portal-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(99,102,241,0.1);
    color: #6366f1;
    margin-bottom: var(--space-4);
}

.portal-stat__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 4px;
}

.portal-stat__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.portal-stat__desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* ============================================================
   PORTAL FOOTER
   ============================================================ */
.portal-footer {
    background: #0d1520;
    color: #9eb0c8;
    padding: var(--space-12) 0 0;
    margin-top: auto;
}

.portal-footer__inner {
    max-width: var(--ikn-content-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--space-6) var(--space-10);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
}

.portal-footer__brand {
    /* brand column is wider */
}

.portal-footer__logo-img {
    display: block;
    height: 64px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: var(--space-5);
}

.portal-footer__tagline {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #7a92aa;
    margin: 0 0 var(--space-5);
    max-width: 240px;
}

.portal-footer__social {
    display: flex;
    gap: var(--space-3);
}

.portal-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: #9eb0c8;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.portal-footer__social-link:hover {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
}

.portal-footer__col-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 var(--space-4);
}

.portal-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.portal-footer__list a {
    font-size: 0.875rem;
    color: #9eb0c8;
    text-decoration: none;
    transition: color 0.15s;
}

.portal-footer__list a:hover {
    color: #ffffff;
}

.portal-footer__bottom {
    max-width: var(--ikn-content-width, 1200px);
    margin: 0 auto;
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.portal-footer__copy {
    font-size: 0.8125rem;
    color: #516070;
    margin: 0;
}

/* ============================================================
   PORTAL — RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .portal-header__inner {
        height: 56px;
        gap: var(--space-3);
        padding: 0 var(--space-4);
    }

    .portal-nav {
        display: none; /* hamburger θα έρθει αργότερα */
    }

    .portal-hero {
        flex-direction: column;
        min-height: auto;
        padding: var(--space-10) var(--space-4);
        text-align: center;
    }

    .portal-hero__image {
        display: none;
    }

    .portal-hero__ctas {
        justify-content: center;
    }

    .portal-hero__trust {
        justify-content: center;
    }

    .portal-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 600px) {
    .portal-footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .portal-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .portal-cta-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .portal-section__inner {
        padding: 0 var(--space-4);
    }
}


/* ============================================================
   PORTAL — Brand-aligned overrides (gold icons, fixed links,
   padding, modern hero, CTA banner pattern)
   ============================================================ */

/* --- Link colors inside portal — override the global blue --- */
.portal-header a:not(.btn),
.portal-main a:not(.btn),
.portal-footer a:not(.btn) {
    color: inherit;
    text-decoration: none;
}

.portal-main a:not(.btn):hover,
.portal-header a:not(.btn):hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Keep nav items their own color regardless */
.portal-nav__item,
.portal-nav__item:hover { text-decoration: none; }

.portal-footer__list a,
.portal-footer__list a:hover { text-decoration: none; }

/* --- Feature card icons — single brand gold --- */
.portal-feature-card__icon,
.portal-feature-card__icon--green,
.portal-feature-card__icon--orange,
.portal-feature-card__icon--purple {
    background: rgba(201,157,23,0.13);
    color: var(--color-accent);
}

[data-theme="dark"] .portal-feature-card__icon,
[data-theme="dark"] .portal-feature-card__icon--green,
[data-theme="dark"] .portal-feature-card__icon--orange,
[data-theme="dark"] .portal-feature-card__icon--purple {
    background: rgba(201,157,23,0.18);
    color: var(--color-accent-light);
}

/* --- Feature card title & link — navy / gold accent, no blue --- */
.portal-feature-card__title {
    color: var(--color-text);
}

.portal-feature-card__desc {
    color: var(--color-text-muted);
}

.portal-feature-card__link {
    color: var(--color-primary);
    font-weight: 600;
}

.portal-feature-card__link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

[data-theme="dark"] .portal-feature-card__link {
    color: var(--color-text-muted);
}

[data-theme="dark"] .portal-feature-card__link:hover {
    color: var(--color-accent-light);
}

/* --- Portal nav CTA — navy pill (gold in dark) --- */
.portal-nav__item--cta {
    background: var(--color-primary);
    color: #ffffff;
}

.portal-nav__item--cta:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
}

[data-theme="dark"] .portal-nav__item--cta {
    background: var(--color-accent);
    color: var(--color-primary);
}

[data-theme="dark"] .portal-nav__item--cta:hover {
    background: var(--color-accent-dark);
    color: var(--color-primary);
}

/* --- Stat icons — gold --- */
.portal-stat__icon {
    background: rgba(201,157,23,0.13);
    color: var(--color-accent);
}

[data-theme="dark"] .portal-stat__icon {
    background: rgba(201,157,23,0.18);
    color: var(--color-accent-light);
}

/* --- Feature section — more breathing room --- */
.portal-features {
    padding: var(--space-20) 0;
}

.portal-features .portal-section__inner {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

.portal-features__grid {
    gap: var(--space-6);
}

/* Section title spacing */
.portal-features .portal-section__title {
    margin-bottom: var(--space-12);
}

/* --- Feature card — top gold accent bar + more padding --- */
.portal-feature-card {
    padding: var(--space-8);
    border-top: 3px solid transparent;
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}

.portal-feature-card:hover {
    border-top-color: var(--color-accent);
    transform: translateY(-3px);
}

/* --- CTA Banner — more padding + subtle diagonal pattern --- */
.portal-cta-banner {
    padding: var(--space-24) 0;
    background-image:
        url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30L30 0' stroke='white' stroke-opacity='0.04' stroke-width='1.5'/%3E%3C/svg%3E"),
        linear-gradient(120deg, #182643 0%, #1b3168 100%);
}

.portal-cta-banner .portal-section__inner {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

/* btn--accent: gold bg + dark text */
.btn--accent {
    background: var(--color-accent);
    color: var(--color-primary) !important;
    border-color: transparent;
    font-weight: 700;
}

.btn--accent:hover {
    background: var(--color-accent-dark);
    color: var(--color-primary) !important;
}

/* Inner container — aligned with boxed sections */
.portal-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
    display: flex;
    align-items: var(--ikn-hero-valign, center); justify-content: var(--ikn-hero-halign-flex, flex-start);
    min-height: 600px;
}
/* Ghost button inside hero — λευκό για ορατότητα πάνω στην εικόνα */
.portal-hero .btn--ghost {
    color: rgba(255, 255, 255, 0.90);
    border-color: rgba(255, 255, 255, 0.55);
}
.portal-hero .btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
}


/* --- Hero — dot grid pattern + more modern feel --- */
.portal-hero {
    padding: 0;
    position: relative;
}



/* Decorative glow orb behind the image placeholder */
.portal-hero__image-placeholder {
    background: linear-gradient(135deg,
        rgba(201,157,23,0.08) 0%,
        rgba(24,38,67,0.06) 50%,
        rgba(201,157,23,0.04) 100%);
    border: 1px solid rgba(201,157,23,0.2);
    border-radius: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 0 60px rgba(201,157,23,0.08);
    position: relative;
    overflow: hidden;
}

/* Shimmer bar inside placeholder */
.portal-hero__image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(201,157,23,0.06) 50%,
        transparent 70%
    );
}
/* Real hero image — κορνίζα με border-radius παντού */
.portal-hero__image-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
    border-radius: 24px;
    display: block;
    box-shadow: 0 8px 40px rgba(24,38,67,0.12);
}

/* --- Hero title highlight — first word in gold --- */
.portal-hero__title strong {
    color: var(--color-accent);
}

/* --- Stats section padding --- */
.portal-stats {
    padding: var(--space-20) 0;
}

.portal-stats .portal-section__inner {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

/* Latest Ideas section (added to front-page) */
.portal-latest {
    padding: var(--space-20) 0;
    background: var(--color-bg);
}

.portal-latest .portal-section__inner {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

.portal-latest__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.portal-latest__footer {
    text-align: center;
    margin-top: var(--space-10);
}

/* Section header with "see all" link */
.portal-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.portal-section__header .portal-section__title {
    margin-bottom: 0;
    text-align: left;
}

.portal-section__see-all {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.portal-section__see-all:hover {
    color: var(--color-accent);
}

/* Responsive fixes */
@media (max-width: 900px) {
    .portal-hero {
        padding: var(--space-12) var(--space-4);
    }

    .portal-features .portal-section__inner,
    .portal-cta-banner .portal-section__inner,
    .portal-stats .portal-section__inner,
    .portal-latest .portal-section__inner {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
}


/* ============================================================
   BUTTONS — navy background always has white text
   (defensive override vs specificity fights)
   ============================================================ */
.btn--primary,
a.btn--primary,
.btn--primary:hover,
a.btn--primary:hover,
.btn--primary:focus,
a.btn--primary:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

.portal-nav__item--cta,
a.portal-nav__item--cta,
.portal-nav__item--cta:hover,
a.portal-nav__item--cta:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

[data-theme="dark"] .portal-nav__item--cta,
[data-theme="dark"] a.portal-nav__item--cta,
[data-theme="dark"] .portal-nav__item--cta:hover,
[data-theme="dark"] a.portal-nav__item--cta:hover {
    color: var(--color-primary) !important; /* dark navy text on gold bg */
    text-decoration: none !important;
}

/* Ghost button text should stay on-brand — no blue underline */
.btn--ghost,
a.btn--ghost,
.btn--ghost:hover,
a.btn--ghost:hover {
    text-decoration: none !important;
}

/* General: no underline on any button-shaped link */
a[class*="btn"] {
    text-decoration: none !important;
}


/* ============================================================
   BUTTONS — gold background also gets white text
   (gold is dark enough: #C99D17 on white gives 3.7:1 contrast,
    but on white bg the button text needs to stand out on gold)
   ============================================================ */
.btn--accent,
a.btn--accent,
.btn--accent:hover,
a.btn--accent:hover,
.btn--accent:focus,
a.btn--accent:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Dark mode: nav CTA is gold bg → white text */
[data-theme="dark"] .portal-nav__item--cta,
[data-theme="dark"] a.portal-nav__item--cta,
[data-theme="dark"] .portal-nav__item--cta:hover,
[data-theme="dark"] a.portal-nav__item--cta:hover {
    color: #ffffff !important;
}


/* ============================================================
   PORTAL HEADER — full width, logo aligned with content
   ============================================================ */

/* Αφαιρούμε το max-width ώστε ο header να πάει full viewport */
.portal-header__inner {
    max-width: none;
    padding: 0 var(--space-8);  /* ίδιο padding με hero / sections */
    gap: var(--space-5);
}

/* Nav: δεν τεντώνει — κάθεται δίπλα στο logo */
.portal-nav {
    flex: 0 0 auto;
    margin-left: var(--space-4);
}

/* Actions: πάντα τερμα δεξιά */
.portal-header__actions {
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .portal-header__inner {
        padding: 0 var(--space-4);
    }
}


/* ============================================================
   PORTAL HEADER — extra vertical padding (+10px top/bottom)
   ============================================================ */
.portal-header__inner {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 64px;
}


/* ============================================================
   APP TOPBAR — full-width alignment + vertical padding
   (ίδιο στυλ με portal header)
   ============================================================ */
.app-topbar {
    height: auto;
    min-height: 56px;
    padding: 10px var(--space-8);
}

@media (max-width: 900px) {
    .app-topbar {
        padding: 10px var(--space-4);
    }
}


/* ============================================================
   SINGLE IDEA — νέο layout (v1.3)
   Voting αριστερά, content δεξιά (κατά mockup)
   ============================================================ */

/* Header top: flex row */
.idea-header__top {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
}

/* Voting box — αριστερά */
.idea-header__voting {
    flex-shrink: 0;
    width: 120px;
}

.idea-header__voting .idea-voting-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.idea-header__voting .idea-voting-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
}

.idea-header__voting .idea-voting-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.idea-header__voting .idea-voting-number {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
}

.idea-header__voting .idea-voting-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-top: var(--space-1);
}

.idea-header__voting .idea-vote-btn {
    width: 100%;
    justify-content: center;
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-3);
}

.idea-header__voting .idea-voting-note {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    text-align: center;
    line-height: var(--leading-tight);
}

/* Content area — δεξιά */
.idea-header__content {
    flex: 1;
    min-width: 0;
}

/* Tags τώρα μέσα στο header (κάτω από meta-bar) */
.idea-header__content .idea-tags {
    margin-top: var(--space-3);
    margin-bottom: 0;
}

/* Responsive: stack σε mobile */
@media (max-width: 640px) {
    .idea-header__top {
        flex-direction: column-reverse;
        gap: var(--space-4);
    }

    .idea-header__voting {
        width: 100%;
    }

    .idea-header__voting .idea-voting-area {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: var(--space-3) var(--space-4);
    }

    .idea-header__voting .idea-voting-inner {
        flex-direction: row;
        align-items: center;
        gap: var(--space-4);
    }

    .idea-header__voting .idea-voting-count {
        flex-direction: row;
        align-items: baseline;
        gap: var(--space-2);
    }

    .idea-header__voting .idea-vote-btn {
        width: auto;
    }
}


/* ============================================================
   ATTACHMENTS SECTION
   ============================================================ */
.idea-attachments {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.idea-attachments__title {
    font-size: var(--text-md);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.idea-attachments__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-3);
}

/* Κρυμμένα attachments (>3) */
.idea-attachment--hidden {
    display: none;
}

/* Attachment card */
.idea-attachment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-3);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    text-align: center;
    transition: border-color var(--transition-fast),
                box-shadow   var(--transition-fast),
                transform    var(--transition-fast);
}

.idea-attachment-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Icon — χρωματιστό γράμμα/σύμβολο ανά τύπο */
.idea-attachment-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: #fff;
    margin-bottom: var(--space-1);
}

.idea-attachment-card__icon::after {
    font-size: var(--text-xs);
    letter-spacing: 0;
    text-transform: uppercase;
}

.idea-attachment-card__icon--pdf  { background: #e53e3e; }
.idea-attachment-card__icon--pdf::after  { content: 'PDF'; }
.idea-attachment-card__icon--doc  { background: #3182ce; }
.idea-attachment-card__icon--doc::after  { content: 'DOC'; }
.idea-attachment-card__icon--xls  { background: #38a169; }
.idea-attachment-card__icon--xls::after  { content: 'XLS'; }
.idea-attachment-card__icon--ppt  { background: #dd6b20; }
.idea-attachment-card__icon--ppt::after  { content: 'PPT'; }
.idea-attachment-card__icon--img  { background: #805ad5; }
.idea-attachment-card__icon--img::after  { content: '🖼'; font-size: 1.2em; }
.idea-attachment-card__icon--file { background: var(--color-text-muted); }
.idea-attachment-card__icon--file::after { content: '📎'; font-size: 1.2em; }

.idea-attachment-card__name {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    word-break: break-word;
    hyphens: auto;
    line-height: var(--leading-tight);
}

.idea-attachment-card__size {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.idea-attachments__toggle {
    margin-top: var(--space-3);
}


/* ============================================================
   ACTION BAR (πριν τα σχόλια)
   ============================================================ */
.idea-action-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin: var(--space-8) 0 var(--space-6);
    padding: var(--space-5) var(--space-6);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.idea-action-bar__vote {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.idea-action-bar__comments {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
}


/* ============================================================
   SIDEBAR — ΕΝΕΡΓΕΙΕΣ PANEL
   ============================================================ */
.idea-actions-panel.card {
    margin-top: var(--space-4);
}

.idea-actions-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.idea-actions-list__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* Generic action link / button */
.idea-action-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.idea-action-link:hover {
    background: var(--color-bg-subtle);
    color: var(--color-primary);
}

.idea-action-link__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
}

.idea-action-link:hover .idea-action-link__icon {
    color: var(--color-primary);
}

.idea-action-link--disabled {
    opacity: .45;
    cursor: not-allowed;
}

.idea-action-link--disabled:hover {
    background: transparent;
    color: var(--color-text);
}

/* Ενεργή παρακολούθηση — το κουμπί δηλώνει κατάσταση, όχι μόνο ενέργεια */
.idea-action-link--active {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold, 600);
}

.idea-action-link--active .idea-action-link__icon {
    color: var(--color-primary);
    fill: currentColor;
    fill-opacity: .15;
}

.idea-action-link__confirm {
    font-size: var(--text-xs);
    color: var(--color-success);
    margin-left: auto;
}

/* Social share sub-links */
.idea-action-share-sub {
    display: flex;
    gap: var(--space-2);
    padding-left: calc(var(--space-3) + 18px + var(--space-3));
    margin-top: var(--space-1);
}

.idea-action-share-sub__link {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.idea-action-share-sub__link:hover {
    color: var(--color-primary);
}


/* ============================================================
   SIDEBAR — ΣΧΕΤΙΚΕΣ ΙΔΕΕΣ PANEL
   ============================================================ */
.idea-related-panel.card {
    margin-top: var(--space-4);
}

.idea-related-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.idea-related-list__item {
    display: block;
}

/* Related card */
.idea-related-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.idea-related-card:hover {
    background: var(--color-bg-card);
    box-shadow: var(--shadow-sm);
}

.idea-related-card__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.idea-related-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.idea-related-card__title {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--leading-tight);
}

.idea-related-card:hover .idea-related-card__title {
    color: var(--color-primary);
}

.idea-related-card__votes {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.idea-related-panel__more {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-primary);
    text-align: center;
    padding: var(--space-2);
    text-decoration: none;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-2);
}

.idea-related-panel__more:hover {
    text-decoration: underline;
}


/* ============================================================
   COMMENTS (ikn-comments)
   ============================================================ */
.ikn-comments {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    padding-inline: var(--space-8);
    padding-bottom: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.ikn-comments__title {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-5);
}

.ikn-comments__closed,
.ikn-comments__must-login {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: var(--space-4);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
}

.ikn-comments__must-login a {
    color: var(--color-primary);
}

.ikn-comments__pagination {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-6);
    flex-wrap: wrap;
}

/* Comment list */
.ikn-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Nested replies */
.ikn-comment-list .ikn-comment-list {
    margin: var(--space-3) 0 0 var(--space-8);
    padding-left: var(--space-4);
    border-left: 2px solid var(--color-border);
    gap: var(--space-3);
}

/* Single comment */
.ikn-comment__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast);
}

.ikn-comment--reply .ikn-comment__inner {
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
}

/* Header (avatar + meta) */
.ikn-comment__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.ikn-comment__avatar {
    flex-shrink: 0;
}

.ikn-comment__avatar-img {
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
}

.ikn-comment__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ikn-comment__author {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.ikn-comment__badge {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    padding: 1px var(--space-2);
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.ikn-comment__date {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Body */
.ikn-comment__body {
    font-size: var(--text-sm);
    color: var(--color-text);
    line-height: var(--leading-normal);
}

.ikn-comment__body p {
    margin-bottom: var(--space-2);
}

.ikn-comment__body p:last-child {
    margin-bottom: 0;
}

.ikn-comment__moderation {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
}

/* Actions (reply + report) */
.ikn-comment__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
}

.ikn-comment__reply a,
.ikn-comment__reply {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.ikn-comment__reply a:hover {
    text-decoration: underline;
}

.ikn-comment__report {
    margin-left: auto;
    color: var(--color-text-light);
    display: inline-flex;
    align-items: center;
    opacity: .6;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.ikn-comment__report:hover {
    opacity: 1;
    color: var(--color-danger);
}

/* Comment form */
.ikn-comment-form-wrap {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.ikn-comment-form__title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-5);
}

.ikn-comment-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Τα fields author/email side by side σε tablet+ */
.ikn-comment-form > .ikn-comment-form__field:not(.ikn-comment-form__field--textarea) {
    flex: 1;
    min-width: 200px;
}

/* Wrapper για name+email σε row */
.ikn-comment-form {
    flex-wrap: wrap;
}

.ikn-comment-form__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
}

.ikn-comment-form__field label {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.ikn-comment-form__field label span[aria-hidden] {
    color: var(--color-danger);
    margin-left: 2px;
}

.ikn-comment-form__submit {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}


/* ============================================================
   DARK MODE overrides — νέα elements
   ============================================================ */

/* Voting box */
[data-theme="dark"] .idea-header__voting .idea-voting-area {
    background: var(--color-bg-card);
    border-color: var(--color-border);
}

[data-theme="dark"] .idea-header__voting .idea-voting-number {
    color: var(--color-primary); /* gold σε dark */
}

/* Action bar */
[data-theme="dark"] .idea-action-bar {
    background: var(--color-bg-subtle);
    border-color: var(--color-border);
}

/* Attachment cards */
[data-theme="dark"] .idea-attachment-card {
    background: var(--color-bg-card);
    border-color: var(--color-border);
}

[data-theme="dark"] .idea-attachment-card:hover {
    border-color: var(--color-primary);
}

[data-theme="dark"] .idea-attachment-card__name {
    color: var(--color-text);
}

/* Sidebar panels */
[data-theme="dark"] .idea-action-link:hover {
    background: var(--color-bg-subtle);
}

[data-theme="dark"] .idea-related-card {
    background: var(--color-bg-subtle);
}

[data-theme="dark"] .idea-related-card:hover {
    background: var(--color-bg-card);
}

[data-theme="dark"] .idea-related-card__icon {
    background: var(--color-primary);
    color: #0d1624;
}

/* Comments */
[data-theme="dark"] .ikn-comment__inner {
    background: var(--color-bg-card);
    border-color: var(--color-border);
}

[data-theme="dark"] .ikn-comment--reply .ikn-comment__inner {
    background: var(--color-bg-subtle);
}

[data-theme="dark"] .ikn-comment-list .ikn-comment-list {
    border-left-color: var(--color-border);
}

[data-theme="dark"] .ikn-comment__badge {
    background: var(--color-primary);
    color: #0d1624;
}

[data-theme="dark"] .ikn-comments__must-login,
[data-theme="dark"] .ikn-comments__closed {
    background: var(--color-bg-subtle);
}


/* ============================================================
   SINGLE IDEA — fixes v1.3.1
   ============================================================ */

/* --- Voting display (απλό — μόνο αριθμός + label) --- */
.idea-vote-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-5) var(--space-4);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    min-width: 80px;
}

.idea-vote-display__number {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
    display: block;
}

.idea-vote-display__label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* Ακυρώνω τα παλιά rules για .idea-voting-area μέσα στο header
   (δεν χρησιμοποιείται πια — αντικαταστάθηκε από idea-vote-display) */
.idea-header__voting .idea-voting-area,
.idea-header__voting .idea-voting-inner,
.idea-header__voting .idea-voting-count,
.idea-header__voting .idea-voting-number,
.idea-header__voting .idea-voting-label,
.idea-header__voting .idea-vote-btn,
.idea-header__voting .idea-voting-note {
    all: unset;
    display: none;
}

/* --- Layout: λιγότερο spacing μεταξύ header και content --- */
.idea-content {
    padding-top: var(--space-5);
}

/* --- Attachments: horizontal padding ίδιο με header --- */
.idea-attachments {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

/* --- Action bar: margin από τον parent + padding εσωτερικά --- */
.idea-action-bar {
    margin-left: var(--space-8);
    margin-right: var(--space-8);
    margin-top: var(--space-6);
}

/* --- Dark mode overrides για νέα vote display --- */
[data-theme="dark"] .idea-vote-display {
    background: var(--color-bg-card);
    border-color: var(--color-border);
}

[data-theme="dark"] .idea-vote-display__number {
    color: var(--color-primary); /* gold */
}

/* ==========================================================================
   Single Idea — Compact Layout Fixes (v1.3.2)
   ========================================================================== */

/* Μειωμένο padding για το container στο single-idea */
.container--single-idea {
    padding-inline: var(--space-2);
}

/* Μειωμένο padding-block + gap στο layout grid */
.single-idea-layout {
    padding-block: var(--space-2) var(--space-4);
    gap: var(--space-4);
}

/* Μικρότερος τίτλος ιδέας */
.idea-header__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
    .idea-header__title {
        font-size: var(--text-2xl);
    }
}

/* Fix CSS specificity bug — hidden attachments δεν κρύβονταν */
.idea-attachment-card.idea-attachment--hidden {
    display: none !important;
}

/* Μικρότερο grid + cards για τα attachments */
.idea-attachments__grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.idea-attachment-card {
    padding: var(--space-2) var(--space-2);
    gap: var(--space-1);
}

.idea-attachment-card__icon {
    width: 32px;
    height: 32px;
    font-size: var(--text-xs);
}


/* ============================================================
   v1.3.3 — Full width, paragraph size, horizontal attachments
   ============================================================ */
.container--single-idea { max-width: 100%; padding-inline: 0; }
.idea-content { font-size: var(--text-base); line-height: var(--leading-relaxed); }
.idea-attachments__grid { display: flex; flex-direction: column; gap: var(--space-2); }
.idea-attachment-card { flex-direction: row; align-items: center; text-align: left; padding: var(--space-2) var(--space-3); gap: var(--space-3); }
.idea-attachment-card__icon { flex-shrink: 0; margin-bottom: 0; width: 36px; height: 36px; }
.idea-attachment-card__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.idea-attachment-card__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; hyphens: none; }

/* ============================================================
   v1.3.4 — Grid attachments + tooltip fix + header compact
   ============================================================ */

/* 1. Attachment grid: multi-column grid (cards παραμένουν horizontal) */
.idea-attachments__grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-2);
}

/* 2. Tooltip glitch: suppress ::before/::after στο action-bar button */
.idea-action-bar__vote.is-voted::before,
.idea-action-bar__vote.is-voted::after {
    display: none;
}

/* 3. Header — compact padding & spacing */
.idea-header                       { padding: var(--space-4); }
.idea-header__top                  { gap: var(--space-3); }
.idea-header__badges               { margin-bottom: var(--space-2); gap: var(--space-1); }
.idea-header__meta                 { gap: var(--space-2); margin-bottom: var(--space-2); }
.idea-header__content .idea-tags   { margin-top: var(--space-2); padding: 0; border-top: none; }

/* 4. Vote display — στενό ορθογώνιο */
.idea-header__voting  { width: 72px; }
.idea-vote-display    { padding: var(--space-4) var(--space-2); min-width: 60px; gap: 2px; }
.idea-vote-display__number { font-size: var(--text-2xl); }

/* 5. Mobile: vote display πάει οριζόντια όταν κάνει stack */
@media (max-width: 640px) {
    .idea-header__voting { width: 100%; }
    .idea-vote-display {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
    }
}

/* ============================================================
   v1.3.5 — Attachment hover no-underline + tooltip fix
   ============================================================ */

/* 1. Attachment cards: κανένα underline σε hover */
.idea-attachment-card:hover,
.idea-attachment-card:hover * {
    text-decoration: none;
}

/* 2. Tooltip action-bar button: visibility αντί display:none
      ώστε να φαίνεται σωστά στο hover αλλά να μην κάνει flash
      στο αρχικό render (override του display:none από v1.3.4) */
.idea-action-bar__vote.is-voted::after,
.idea-action-bar__vote.is-voted::before {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}
.idea-action-bar__vote.is-voted:hover::after,
.idea-action-bar__vote.is-voted:hover::before {
    visibility: visible;
    opacity: 1;
}

/* ============================================================
   v1.4.0 — Comments AJAX (messages, counter, login prompt)
   ============================================================ */

/* Inline feedback messages */
.ikn-comment-form__message {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.ikn-comment-form__message--success {
    background: color-mix(in srgb, var(--color-success) 12%, transparent);
    color: var(--color-success);
    border: 1px solid color-mix(in srgb, var(--color-success) 30%, transparent);
}
.ikn-comment-form__message--error {
    background: color-mix(in srgb, var(--color-danger) 10%, transparent);
    color: var(--color-danger);
    border: 1px solid color-mix(in srgb, var(--color-danger) 25%, transparent);
}
.ikn-comment-form__message--info {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
    border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
}

/* Character counter */
.ikn-char-counter {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: right;
    display: block;
    margin-top: var(--space-1);
    transition: color var(--transition-fast);
}
.ikn-char-counter--warn { color: var(--color-warning, #d97706); }
.ikn-char-counter--over { color: var(--color-danger); font-weight: var(--font-weight-semibold); }

/* Submit button disabled state */
.ikn-comment-form [type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Login prompt για non-logged-in */
.ikn-comments__login-prompt {
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: center;
}
.ikn-comments__login-prompt a {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}
.ikn-comments__login-prompt a:hover { text-decoration: underline; }

/* Nested comment list (WP default class .children) */
.ikn-comment-list .children {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0 0 var(--space-8);
    padding-left: var(--space-4);
    border-left: 2px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* ============================================================
   ARCHIVE v2.0 — List view, Search bar, View toggle, Tabs
   ============================================================ */

/* --- Filter bar ---------------------------------------------------------- */
.idea-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.idea-filters__search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1 1 220px;
    min-width: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    color: var(--color-text-muted);
}

.idea-filters__search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: var(--text-sm);
    color: var(--color-text);
    outline: none;
    min-width: 0;
}

.idea-filters__search-input::placeholder {
    color: var(--color-text-muted);
}

.idea-filters__search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

/* --- View toggle ---------------------------------------------------------- */
.idea-view-toggle {
    display: flex;
    gap: 2px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-left: auto;
}

.idea-view-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: calc(var(--radius-md) - 2px);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.idea-view-toggle__btn.is-active,
.idea-view-toggle__btn:hover {
    background: var(--color-bg-card);
    color: var(--color-text);
}

.idea-view-toggle__btn.is-active {
    box-shadow: var(--shadow-sm);
}

/* --- Loop container: list / grid mode ------------------------------------ */
.idea-loop__container[data-view="list"] .idea-card  { display: none; }
.idea-loop__container[data-view="grid"] .idea-list-item { display: none; }
.idea-loop__container[data-view="grid"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }
.idea-loop__container[data-view="list"] { display: flex; flex-direction: column; gap: var(--space-3); }

/* --- List item ------------------------------------------------------------ */
.idea-list-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: visible;
}

.idea-list-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.idea-list-item__vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-top: 0;
    align-self: stretch;
    height: 65px;
}

.idea-list-item__header {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-1);
}

.idea-list-item__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-3);
}

.idea-list-item__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.idea-list-item__title {
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin: 0;
    line-height: var(--leading-snug);
}

.idea-list-item__link {
    color: inherit;
    text-decoration: none;
}

.idea-list-item__link:hover {
    color: var(--color-primary);
}

.idea-list-item__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idea-list-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-1);
    font-size: .72rem;
    color: var(--color-text-muted);
    margin-top: 0;
    padding-top: 0;
}

.badge--espa {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
    border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
}

/* --- Empty state ---------------------------------------------------------- */
.idea-loop__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-16) var(--space-8);
    text-align: center;
    color: var(--color-text-muted);
}

.idea-loop__empty p {
    font-size: var(--text-sm);
    margin: 0;
}

/* --- Dark mode ------------------------------------------------------------ */
[data-theme="dark"] .idea-list-item { background: var(--color-bg-card); border-color: var(--color-border); }
[data-theme="dark"] .idea-list-item:hover { border-color: var(--color-primary); }
[data-theme="dark"] .idea-filters__search { background: var(--color-bg-card); border-color: var(--color-border); }
[data-theme="dark"] .idea-view-toggle { background: var(--color-bg-subtle); border-color: var(--color-border); }
[data-theme="dark"] .idea-view-toggle__btn.is-active { background: var(--color-bg-card); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 640px) {
    .idea-list-item { gap: var(--space-3); }
    .idea-list-item__vote { flex-direction: row; justify-content: flex-start; height: auto; }
    .idea-view-toggle { margin-left: 0; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   LIST VIEW — ARCHIVE COMPONENTS
   Tab badge · vote area · list item layout · bookmark · tags · meta · date filter
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Tab count badge ────────────────────────────────────────────────────────── */
.ctabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4em;
    height: 1.4em;
    padding: 0 .4em;
    margin-left: .4em;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: .7em;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}
.ctabs__tab.is-active .ctabs__count {
    background: #fff;
    color: var(--color-primary);
}

/* ── Vote area (list view) ──────────────────────────────────────────────────── */
/* position:relative so the absolute-positioned chevron can anchor inside it.   */
/* padding-top:30px reserves space above counter+label for the chevron.         */
.idea-voting-area--list {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1px;
    min-width: 56px;
    padding: 30px var(--space-2) var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: transparent;
    box-sizing: border-box;
    align-self: stretch;
    height: 100%;
    user-select: none;
    transition: border-color .15s;
}
.idea-voting-area--list.is-voted {
    border-color: var(--color-primary);
}
.idea-voting-area--list.is-voted .idea-vote-list-count {
    color: var(--color-primary);
}

/* ── Vote button (chevron) ──────────────────────────────────────────────────── */
/* Absolute-positioned inside .idea-voting-area--list (position:relative).      */
/* left:50% + translateX(-50%) centres it horizontally above counter+label.     */
.idea-vote-list-btn {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 2px;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: color .15s, background .15s;
    width: auto;
    height: auto;
}
.idea-vote-list-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}
/* Keep translateX(-50%) on hover — .idea-vote-btn:hover sets translateY(-2px) */
/* which would replace our translateX and shift the chevron rightward + upward. */
.idea-vote-list-btn:hover,
.idea-vote-list-btn:active {
    transform: translateX(-50%);
    box-shadow: none;
}
.idea-vote-list-btn:hover:not([disabled]) {
    color: var(--color-primary);
}
.idea-vote-list-btn.is-voted {
    color: var(--color-primary);
    background: transparent;
}
.idea-vote-list-btn.is-voted svg {
    fill: var(--color-primary);
}
.idea-vote-list-btn.is-voted:hover:not([disabled]) {
    background: transparent;
    color: var(--color-primary);
}
.idea-vote-list-btn--static {
    cursor: default;
    pointer-events: none;
}
.idea-vote-list-btn[disabled] {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Vote counter ───────────────────────────────────────────────────────────── */
.idea-vote-list-count {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
    font-family: inherit;
    cursor: default;
    border-radius: 3px;
    transition: color .15s, background .15s;
}
.idea-vote-list-count[disabled] {
    cursor: default;
}
/* When voted — clicking the counter removes the vote */
.idea-vote-list-count.is-active-unvote {
    cursor: pointer;
    color: var(--color-primary);
    border-radius: 3px;
    transition: color .15s, background .15s;
}
.idea-vote-list-count.is-active-unvote:hover {
    color: #c53030;
    background: color-mix(in srgb, #c53030 8%, transparent);
}
.idea-vote-list-count.is-active-unvote:hover::after {
    content: '';
}

/* ── Vote label (e.g. "ψήφος") ─────────────────────────────────────────────── */
.idea-vote-list-label {
    display: block;
    text-align: center;
    font-size: .65rem;
    color: var(--color-text-muted);
    line-height: 1;
    letter-spacing: .02em;
}

/* ── List item layout — top row & body ─────────────────────────────────────── */
/* Top row: vote column | header (status + title) | bookmark                   */
.idea-list-item__top {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-4);
}

/* Right-side action column (bookmark) */
.idea-list-item__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: var(--space-2);
    flex-shrink: 0;
}

/* ── Bookmark button ────────────────────────────────────────────────────────── */
.idea-bookmark-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color .15s, background .15s;
    padding: 0;
}
.idea-bookmark-btn svg {
    width: 17px;
    height: 17px;
}
.idea-bookmark-btn:hover {
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.idea-bookmark-btn.is-saved {
    color: var(--color-primary);
}
.idea-bookmark-btn.is-saved svg {
    fill: var(--color-primary);
}

/* ── Tag chips (list item) ──────────────────────────────────────────────────── */
.idea-list-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: var(--space-1);
}
.idea-tag-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 500;
    line-height: 1.5;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.idea-tag-chip:hover {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ── Meta row — author, avatar, date, comments ─────────────────────────────── */
.idea-meta-item--author {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}
.idea-meta-avatar {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.idea-meta-avatar__img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.idea-meta-sep {
    color: var(--color-border);
    font-size: .75rem;
}
.idea-meta-author-text { color: var(--color-text-muted); }
.idea-meta-author-text strong { color: var(--color-text); font-weight: 600; }
.idea-meta-time { color: var(--color-text-muted); }
.idea-meta-comments {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.idea-meta-comments svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ── Status & taxonomy chips ────────────────────────────────────────────────── */
.idea-list-item__status {
    font-size: .72rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}
.idea-list-item__taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: var(--space-1);
}
.idea-tax-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .7rem;
    line-height: 1.6;
    font-weight: 500;
}
.idea-tax-chip--cat {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
}
.idea-tax-chip--espa {
    background: color-mix(in srgb, #2f855a 10%, transparent);
    color: #276749;
}

/* ── Date filter group ──────────────────────────────────────────────────────── */
.idea-filters__group--date {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    padding: 4px 10px;
    box-sizing: border-box;
}
.idea-filters__date-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}
.idea-filters__date-sep {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    flex-shrink: 0;
}
.idea-filters__date-input {
    font-family: inherit;
    font-size: var(--text-sm);
    color: var(--color-text);
    background: transparent;
    border: none;
    outline: none;
    padding: 2px 0;
    width: 105px;
    min-width: 0;
    flex-shrink: 0;
    cursor: pointer;
}
.idea-filters__date-input::-webkit-datetime-edit { padding-right: 0; margin-right: 0; }
.idea-filters__date-input::-webkit-datetime-edit-fields-wrapper { padding-right: 0; }
.idea-filters__date-input::-webkit-calendar-picker-indicator {
    margin-left: -6px;
    padding: 0 0 0 2px;
    cursor: pointer;
    opacity: 0.6;
    flex-shrink: 0;
}
.idea-filters__date-input::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.idea-filters__group--date:focus-within { border-color: var(--color-primary); }

@media (max-width: 640px) {
    .idea-filters__group--date { flex-wrap: wrap !important; width: 100%; }
    .idea-filters__date-sep { display: none; }
}

/* ── Dark mode overrides ────────────────────────────────────────────────────── */
[data-theme="dark"] .idea-voting-area--list { border-color: var(--color-border); }
[data-theme="dark"] .idea-voting-area--list.is-voted { border-color: var(--color-primary); }
[data-theme="dark"] .idea-bookmark-btn,
[data-theme="dark"] .idea-vote-list-btn { color: var(--color-text-muted); }
[data-theme="dark"] .idea-tag-chip { border-color: var(--color-border); color: var(--color-text-muted); }
[data-theme="dark"] .idea-tax-chip--cat { background: color-mix(in srgb, var(--color-primary) 18%, transparent); }
[data-theme="dark"] .idea-tax-chip--espa { color: #68d391; background: color-mix(in srgb, #68d391 15%, transparent); }


/* =============================================================================
   BEST PRACTICES — Cards, List Items, Star Rating
   ============================================================================= */

/* ── BP Card (Grid view) ─────────────────────────────────────────────────── */
.bp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}
.bp-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}
.bp-card__body {
    flex: 1;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.bp-card__terms { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bp-card__title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.35; }
.bp-card__link  { color: var(--color-text-primary); text-decoration: none; }
.bp-card__link:hover { color: var(--color-primary); }
.bp-card__source {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: .8rem;
    color: var(--color-text-muted);
    margin: 0;
}
.bp-card__source-icon { width: 14px; height: 14px; flex-shrink: 0; opacity: .6; }
.bp-card__excerpt { font-size: .85rem; color: var(--color-text-secondary); line-height: 1.55; margin: 0; }
.bp-card__footer {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-5) 48px;
    border-top: 1px solid var(--color-border);
    gap: var(--space-3);
}
/* ── BP Card corner arrow (puzzle button) ───────────────────────────── */
.bp-card__corner-link {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    text-decoration: none;
}
/* The circle button */
.bp-card__corner-btn {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    margin: 0 7px 7px 0;
    flex-shrink: 0;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
/* Hover: ONLY the circle changes, not the whole card */
.bp-card__corner-btn svg {
    transition: transform var(--transition-fast);
}
.bp-card:hover .bp-card__corner-btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-inverse);
}
.bp-card:hover .bp-card__corner-btn svg {
    transform: rotate(40deg);
}

/* ── BP List Item ────────────────────────────────────────────────────────── */
.bp-list-item { /* inherits .idea-list-item */ }
.bp-list-item__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 64px;
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: transparent;
    text-align: center;
}

/* ── Star Rating Widget ──────────────────────────────────────────────────── */
.bp-star-rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: wrap;
}
.bp-star-rating--card   { flex-direction: row; }
.bp-star-rating--list   { flex-direction: column; align-items: center; gap: 2px; }
.bp-star-rating--single { gap: var(--space-2); }

.bp-star-rating__star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    cursor: default;
    transition: color .12s, transform .12s;
}
.bp-star-rating--list .bp-star-rating__star { width: 16px; height: 16px; }
.bp-star-rating--single .bp-star-rating__star { width: 24px; height: 24px; }

.bp-star-rating__star svg { width: 100%; height: 100%; }

/* States */
.bp-star-rating__star.is-full  { color: #f59e0b; }
.bp-star-rating__star.is-full svg path  { fill: #f59e0b; }
.bp-star-rating__star.is-half  { color: #f59e0b; opacity: .6; }
.bp-star-rating__star.is-empty { color: var(--color-border); }

/* Interactive stars */
.bp-star-rating--interactive .bp-star-rating__star {
    cursor: pointer;
}
.bp-star-rating--interactive .bp-star-rating__star:hover,
.bp-star-rating--interactive .bp-star-rating__star:focus-visible {
    color: #f59e0b;
    transform: scale(1.2);
    outline: none;
}
.bp-star-rating--interactive .bp-star-rating__star:hover svg path { fill: #f59e0b; }
.bp-star-rating--interactive .bp-star-rating__star.is-empty:hover svg path { fill: none; }

/* Loading state */
.bp-star-rating.is-loading { opacity: .6; pointer-events: none; }

.bp-star-rating__label {
    font-size: .75rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.bp-star-rating--list .bp-star-rating__label { font-size: .7rem; }

.bp-star-rating__login-hint {
    font-size: .72rem;
    color: var(--color-text-muted);
}
.bp-star-rating__login-hint a { color: var(--color-primary); text-decoration: none; }
.bp-star-rating__login-hint a:hover { text-decoration: underline; }

/* ── Badge: BP Sector ────────────────────────────────────────────────────── */
.badge--bp-sector {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
    border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.idea-tax-chip--bp-sector {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
    border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
}
.idea-tax-chip--source {
    background: color-mix(in srgb, var(--color-text-muted) 10%, transparent);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

/* ── BP Single ───────────────────────────────────────────────────────────── */
.bp-single__impact {
    margin-top: var(--space-6);
    padding: var(--space-5);
    background: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg-card));
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.bp-single__section-title {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-primary);
    margin: 0 0 var(--space-3);
}
.bp-single__impact-text { font-size: .9rem; line-height: 1.6; color: var(--color-text-secondary); }

/* Mobile: rating visible, hide sidebar one on desktop it shows in sidebar */
.bp-single__rating-mobile { margin-bottom: var(--space-5); }
@media (min-width: 768px) { .bp-single__rating-mobile { display: none; } }

/* ── Sidebar Info BP ─────────────────────────────────────────────────────── */
.sidebar-info { display: flex; flex-direction: column; gap: var(--space-4); }
.sidebar-info__section { display: flex; flex-direction: column; gap: var(--space-2); }
.sidebar-info__section--meta { flex-direction: row; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.sidebar-info__heading {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-muted);
    margin: 0;
}
.sidebar-info__value { font-size: .88rem; color: var(--color-text-secondary); margin: 0; line-height: 1.5; }
.sidebar-info__terms { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sidebar-info__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: .78rem;
    color: var(--color-text-muted);
}
.sidebar-info__meta-item svg { width: 14px; height: 14px; }

/* ── BP Loop view toggle (mirrors ideas loop toggle) ─────────────────────── */
.bp-loop__container[data-view="list"] .bp-card      { display: none; }
.bp-loop__container[data-view="grid"] .bp-list-item { display: none; }
.bp-loop__container[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}
.bp-loop__container[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* ── BP List Item (νέο layout: rating πάνω, vertical stack) ──────────────── */
.bp-list-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}
.bp-list-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}
.bp-list-item__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
}
.bp-list-item__rating-row {
    display: flex;
    align-items: center;
}
/* Rating στη λίστα: οριζόντιο, compact */
.bp-list-item__rating-row .bp-star-rating--list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
}
.bp-list-item__rating-row .bp-star-rating--list .bp-star-rating__star {
    width: 15px;
    height: 15px;
}
.bp-list-item__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}
.bp-list-item__link {
    color: var(--color-text-primary);
    text-decoration: none;
}
.bp-list-item__link:hover { color: var(--color-primary); }
.bp-list-item__excerpt {
    font-size: .85rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0;
}
.bp-list-item__taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.bp-list-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-1);
    font-size: .72rem;
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* ============================================================
   BP Single + Badges — dot-style sector, content sizing,
   attachment list, list-item source icon
   ============================================================ */

/* ── 1. Sector badge: dot + name, χωρίς background ─────────── */
.badge--bp-sector {
    background: transparent;
    border-color: transparent;
    padding-left: 0;
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge--bp-sector::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.idea-tax-chip--bp-sector {
    background: transparent;
    border-color: transparent;
    padding-left: 0;
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.idea-tax-chip--bp-sector::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

/* ── 2. Single BP — τίτλος + content ───────────────────────── */
.idea-single__title {
    font-size: var(--text-2xl);
    line-height: 1.25;
    margin: var(--space-3) 0 var(--space-4);
    color: var(--color-text);
}
@media (min-width: 768px) {
    .idea-single__title { font-size: var(--text-3xl); }
}

.idea-single__content {
    padding-block: var(--space-6);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
}

/* ── 3. Attachment list — fix μέγεθος icon ─────────────────── */
.idea-attachments-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.idea-attachment-item a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-primary);
    text-decoration: none;
}
.idea-attachment-item a:hover { text-decoration: underline; }
.idea-attachment-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-text-muted);
}

/* ── 4. List-item source chip — flex για icon ───────────────── */
.idea-tax-chip--source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.idea-tax-chip--source svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: var(--color-text-muted);
}

/* ============================================================
   Container single-idea — max-width, left-align, content padding
   ============================================================ */
/* Container: max-width + left-align (αντί για centered) */
.container--single-idea {
    max-width: 1400px !important;
    margin-inline: 0 !important; /* left-align, όχι centered */
}

/* Consistent horizontal padding — ίδιο με .idea-breadcrumb (var(--space-8)) */
.idea-single__badges,
.idea-single__title,
.idea-single__meta,
.bp-single__rating-mobile,
.idea-attachments,
.idea-single__content {
    padding-inline: var(--space-8);
}
.bp-single__impact { border-radius: 0; }
.idea-single__content {
    padding-block: var(--space-5);
}
.idea-attachments {
    padding-bottom: 20px;
}
/* Regular idea: .idea-content ίδιο horizontal padding */
.idea-content {
    padding-inline: var(--space-8);
    padding-block: var(--space-5);
}

/* Συνημμένα heading — μικρότερο από h2 global */
.idea-single__section-title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-3);
}


/* ═══════════════════════════════════════════════════════════
   ARCHIVE HERO — full-width background + flat dark overlay
   Lives BEFORE app-body, spans full viewport width
   ═══════════════════════════════════════════════════════════ */

.archive-hero {
    position: relative;
    /* Ύψος ανά τύπο σελίδας & συσκευή — ο Customizer γράφει το --ikn-hero-height */
    min-height: var(--ikn-hero-height, 380px);
    display: flex;
    flex-direction: column;
    justify-content: var(--ikn-hero-valign, flex-end);
    /* Τελικό fallback όταν δεν έχει οριστεί καμία εικόνα πουθενά.
       Το inline style του hero.php το υπερισχύει όταν υπάρχει εικόνα. */
    background-image: linear-gradient(135deg, var(--color-primary, #182643) 0%, #0d1526 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 1;
}

.archive-hero__inner {
  text-align: var(--ikn-hero-halign, left);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--ikn-content-width, 1200px);
    margin-inline: auto;
    padding: var(--space-8) var(--space-6) var(--space-5);
}

/* Sidebar ενεργό: hero inner μετακινείται δεξιά ώστε να ευθυγραμμίζεται με το main content */
.has-sidebar .archive-hero__inner {
  text-align: var(--ikn-hero-halign, left);
    margin-left: var(--ikn-sidebar-width, 280px);
    margin-right: 0;
    max-width: min(var(--ikn-content-width, 1200px), calc(100% - var(--ikn-sidebar-width, 280px)));
}

/* ── Topbar inside hero ────────────────────────────────── */
.archive-hero .ctopbar {
    border-bottom-color: rgba(255, 255, 255, 0.18);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
}

.archive-hero .ctopbar__title {
    color: #ffffff;
    font-size: var(--text-2xl);
}

/* ── Tabs inside hero ──────────────────────────────────── */
.archive-hero .ctabs {
    border-bottom-color: rgba(255, 255, 255, 0.18);
    margin-bottom: var(--space-4);
}

.archive-hero .ctabs__tab {
    color: rgba(255, 255, 255, 0.88);
    border-bottom-color: transparent;
}

.archive-hero .ctabs__tab:hover {
    color: #ffffff;
}

.archive-hero .ctabs__tab.is-active {
    color: #ffffff;
    border-bottom-color: var(--color-accent);
    font-weight: var(--font-weight-semibold);
}

.archive-hero .ctabs__count {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.90);
}

.archive-hero .ctabs__tab.is-active .ctabs__count {
    background-color: var(--color-accent);
    color: #ffffff;
}

/* ── Filter form inside hero ───────────────────────────── */
.archive-hero__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
}

/* All filter children: normal dark-on-white styling */
.archive-hero__filters .idea-filters__search {
    background: var(--color-bg-input, #fff);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
}

.archive-hero__filters .idea-filters__search-input {
    background: transparent;
    color: var(--color-text);
}

.archive-hero__filters .idea-filters__search-input::placeholder {
    color: var(--color-text-muted);
}

.archive-hero__filters .idea-filters__search svg {
    color: var(--color-text-muted);
}

/* Selects */
.archive-hero__filters .idea-filters__select {
    background: var(--color-bg-input, #fff);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-md);
}

/* Date inputs */
.archive-hero__filters .idea-filters__date-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    border-radius: var(--radius-md);
    color-scheme: light;
}

.archive-hero__filters .idea-filters__date-label,
.archive-hero__filters .idea-filters__date-sep {
    color: var(--color-text-muted);
}

/* View toggle */
.archive-hero__filters .idea-view-toggle {
    margin-left: auto;
    background: var(--color-bg-subtle, #f5f5f5);
    border: 1px solid var(--color-border);
}

.archive-hero__filters .idea-view-toggle__btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
}

.archive-hero__filters .idea-view-toggle__btn:hover,
.archive-hero__filters .idea-view-toggle__btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* Dark mode: filter form → navy blue card */
[data-theme="dark"] .archive-hero__filters {
    background: var(--color-brand-navy, #182643);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .archive-hero__filters .idea-filters__search {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

[data-theme="dark"] .archive-hero__filters .idea-filters__search-input {
    color: #ffffff;
}

[data-theme="dark"] .archive-hero__filters .idea-filters__search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .archive-hero__filters .idea-filters__search svg {
    color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .archive-hero__filters .idea-filters__select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

[data-theme="dark"] .archive-hero__filters .idea-filters__select option {
    background: var(--color-brand-navy, #182643);
    color: #ffffff;
}

[data-theme="dark"] .archive-hero__filters .idea-filters__date-input {
    background: transparent;
    border: none;
    color: #ffffff;
    color-scheme: dark;
}

[data-theme="dark"] .archive-hero__filters .idea-filters__date-label,
[data-theme="dark"] .archive-hero__filters .idea-filters__date-sep {
    color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .archive-hero__filters .idea-view-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .archive-hero__filters .idea-view-toggle__btn {
    color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .archive-hero__filters .idea-view-toggle__btn:hover,
[data-theme="dark"] .archive-hero__filters .idea-view-toggle__btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

[data-theme="dark"] .archive-hero .ctabs__tab,
[data-theme="dark"] .archive-hero .ctabs__tab:hover,
[data-theme="dark"] .archive-hero .ctabs__tab.is-active {
    color: inherit;
}

/* ── Hero «στοιβαγμένη» κεφαλίδα: breadcrumb + τίτλος + περιγραφή ─────── */
.archive-hero--stacked .archive-hero__inner {
  text-align: var(--ikn-hero-halign, left);
    display: flex;
    flex-direction: column;
    align-items: var(--ikn-hero-halign-flex, flex-start);
    gap: var(--space-3);
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
}

.hero-breadcrumb__link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.15s;
}

.hero-breadcrumb__link:hover {
    color: #ffffff;
}

.hero-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.45);
}

.hero-breadcrumb__current {
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    margin: 0;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.hero-desc {
    margin: 0;
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
    line-height: 1.6;
}

/* ── Submit-idea form content wrapper ───────────────────── */
.submit-idea-content {
    max-width: var(--ikn-content-width, 1200px);
    margin-left: 0;
    margin-right: auto;
    padding: var(--space-8) var(--space-6);
}


/* =============================================================================
   SUBMIT GUEST VIEW — αριστερή στοίχιση, χωρίς container centering
   ============================================================================= */

.submit-guest {
    padding: 2rem 0 3rem;
}

.submit-guest__intro {
    margin-bottom: 2.5rem;
}

.submit-guest__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 .75rem;
    color: var(--color-heading, #1a1a2e);
}

.submit-guest__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted, #555);
    max-width: 64ch;
    margin: 0 0 1.5rem;
}

.submit-guest__cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.submit-guest__benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.submit-guest__benefit {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: .75rem;
    background: var(--color-surface, #fff);
}

.submit-guest__benefit .benefit-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: .5rem;
}

.submit-guest__benefit h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .35rem;
}

.submit-guest__benefit p {
    font-size: .9rem;
    color: var(--color-text-muted, #666);
    margin: 0;
    line-height: 1.6;
}

/* =============================================================================
   FILE UPLOAD ZONE
   ============================================================================= */

.file-upload-zone {
    position: relative;
    border: 2px dashed var(--color-border, #cbd5e1);
    border-radius: .625rem;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-align: center;
    background: var(--color-surface, #fafafa);
}

.file-upload-zone:hover,
.file-upload-zone.is-dragover {
    border-color: var(--color-primary, #2563eb);
    background: color-mix(in srgb, var(--color-primary, #2563eb) 5%, transparent);
}

.file-upload-zone__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    pointer-events: none;
    color: var(--color-text-muted, #64748b);
}

.file-upload-zone__inner svg {
    opacity: .5;
}

.file-upload-zone__inner p {
    margin: 0;
    font-size: .95rem;
}

.file-upload-zone__hint {
    font-size: .8rem;
    opacity: .7;
}

.file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-list {
    list-style: none;
    margin: .5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.file-upload-item {
    font-size: .85rem;
    color: var(--color-text, #374151);
    padding: .25rem .5rem;
    border-radius: .375rem;
    background: var(--color-surface-alt, #f1f5f9);
}

.file-upload-item--error {
    color: #b91c1c;
    background: #fef2f2;
}

/* =============================================================================
   IDEA PHOTO GALLERY
   ============================================================================= */

.idea-photo-gallery {
    margin-block: 2rem;
    padding-inline: var(--space-8);
}

@media (max-width: 768px) {
    .idea-photo-gallery {
        padding-inline: var(--space-4);
    }
}

.idea-photo-gallery__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--color-heading, #1a1a2e);
}

.idea-photo-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

@media (max-width: 600px) {
    .idea-photo-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .idea-photo-gallery__grid {
        grid-template-columns: 1fr;
    }
}

.idea-photo-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: .625rem;
    border: none;
    padding: 0;
    cursor: zoom-in;
    background: var(--color-surface-alt, #f1f5f9);
    transition: transform .2s, box-shadow .2s;
}

.idea-photo-gallery__item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.idea-photo-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}

.idea-photo-gallery__item:hover img {
    transform: scale(1.05);
}

.idea-photo-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .2s;
}

.idea-photo-gallery__item:hover .idea-photo-gallery__overlay,
.idea-photo-gallery__item:focus-visible .idea-photo-gallery__overlay {
    opacity: 1;
}

.idea-photo-gallery__item:focus-visible {
    outline: 3px solid var(--color-primary, #2563eb);
    outline-offset: 2px;
}

/* =============================================================================
   LIGHTBOX
   ============================================================================= */

.ikn-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ikn-lightbox[hidden] {
    display: none;
}

.ikn-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    cursor: pointer;
}

.ikn-lightbox__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem);
    z-index: 1;
}

.ikn-lightbox__img {
    display: block;
    max-width: calc(100vw - 10rem);
    max-height: calc(100dvh - 6rem);
    object-fit: contain;
    border-radius: .5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

@media (max-width: 600px) {
    .ikn-lightbox__img {
        max-width: calc(100vw - 5rem);
    }
}

.ikn-lightbox__close,
.ikn-lightbox__prev,
.ikn-lightbox__next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
    padding: 0;
    line-height: 1;
}

.ikn-lightbox__close:hover,
.ikn-lightbox__prev:hover,
.ikn-lightbox__next:hover {
    background: rgba(255,255,255,.3);
}

.ikn-lightbox__close:disabled,
.ikn-lightbox__prev:disabled,
.ikn-lightbox__next:disabled {
    opacity: .3;
    cursor: default;
}

.ikn-lightbox__close {
    top: -3rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
}

.ikn-lightbox__prev {
    left: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
}

.ikn-lightbox__next {
    right: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
}

@media (max-width: 600px) {
    .ikn-lightbox__prev { left: -2.75rem; width: 2.25rem; height: 2.25rem; }
    .ikn-lightbox__next { right: -2.75rem; width: 2.25rem; height: 2.25rem; }
}

.ikn-lightbox__counter {
    position: absolute;
    bottom: -2.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    white-space: nowrap;
    margin: 0;
}

/* =============================================================================
   FILE UPLOAD PREVIEW CARDS
   ============================================================================= */

.file-upload-previews {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
    margin-top: .75rem;
}

.file-upload-preview {
    position: relative;
    width: 96px;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    border: 1.5px solid var(--color-border, #e5e7eb);
    background: var(--color-surface, #fff);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: .5rem;
    gap: .2rem;
    cursor: default;
}

.file-upload-preview--error {
    border-color: var(--color-danger, #ef4444);
}

.file-upload-preview__thumb {
    width: 100%;
    height: 68px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.file-upload-preview__icon {
    width: 100%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-subtle, #f4f5f7);
    font-size: .7rem;
    font-weight: 700;
    color: var(--color-text-muted, #6b7280);
    letter-spacing: .06em;
    flex-shrink: 0;
}

.file-upload-preview__name {
    font-size: .68rem;
    color: var(--color-text, #111);
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-inline: .3rem;
    text-align: center;
    line-height: 1.3;
}

.file-upload-preview__size {
    font-size: .65rem;
    color: var(--color-text-muted, #6b7280);
}

.file-upload-preview__size-err {
    font-size: .65rem;
    color: var(--color-danger, #ef4444);
    text-align: center;
    padding-inline: .25rem;
}

.file-upload-preview__remove {
    position: absolute;
    top: .3rem;
    right: .3rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    z-index: 2;
    transition: background .15s;
}

.file-upload-preview__remove:hover {
    background: rgba(0, 0, 0, .82);
}

/* =============================================================================
   ΑΝΑΖΗΤΗΣΗ & 404
   ============================================================================= */

.ikn-results__search,
.ikn-notfound__search {
    max-width: 520px;
    margin-bottom: var(--space-6);
}

.ikn-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.ikn-result {
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border);
}

.ikn-result:last-child {
    border-bottom: 0;
}

.ikn-result__type {
    display: inline-block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
}

.ikn-result__title {
    margin: 0 0 var(--space-2);
    font-size: var(--text-lg);
}

.ikn-result__excerpt {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.ikn-results__empty,
.ikn-notfound__lead {
    color: var(--color-text-muted);
}

.ikn-notfound__links {
    list-style: none;
    margin: var(--space-5) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Λογαριασμός χρήστη (/logariasmos)
   ═══════════════════════════════════════════════════════════════════════════ */

.topbar__account {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    text-decoration: none;
    color: inherit;
}

.topbar__account:hover .topbar__username {
    color: var(--color-primary);
}

.ikn-dash {
    max-width: 980px;
    margin: 0 auto;
}

.ikn-dash__nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1, 4px);
    border-bottom: 1px solid var(--color-border, #e2e5ea);
    margin-bottom: var(--space-6, 24px);
}

.ikn-dash__nav-link {
    padding: var(--space-3, 12px) var(--space-4, 16px);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium, 500);
    color: var(--color-text-muted, #5b6472);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.ikn-dash__nav-link:hover {
    color: var(--color-primary);
}

.ikn-dash__nav-link--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: var(--font-weight-semibold, 600);
}

.ikn-dash__panel {
    min-height: 200px;
}

.ikn-dash__placeholder {
    padding: var(--space-8, 32px);
    text-align: center;
    color: var(--color-text-muted, #5b6472);
    background: var(--color-bg-subtle, #f5f6f8);
    border-radius: var(--radius-md, 8px);
}

@media (max-width: 600px) {
    .ikn-dash__nav-link {
        padding: var(--space-3, 12px) var(--space-2, 8px);
        font-size: var(--text-xs);
    }
}

/* ── Λογαριασμός → Οι ιδέες μου ─────────────────────────────────────────── */

.ikn-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 8px);
    margin-bottom: var(--space-5, 20px);
}

.ikn-subtabs__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: var(--space-2, 8px) var(--space-4, 16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full, 999px);
    font-size: var(--text-sm);
    color: var(--color-text-muted, #5b6472);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.ikn-subtabs__link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.ikn-subtabs__link--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: var(--font-weight-semibold, 600);
}

.ikn-subtabs__count {
    font-size: var(--text-xs);
    opacity: .75;
}

.ikn-dash-ideas__note {
    font-size: var(--text-sm);
    color: var(--color-text-muted, #5b6472);
    background: var(--color-bg-subtle, #f5f6f8);
    border-left: 3px solid var(--color-border);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    border-radius: var(--radius-sm, 4px);
    margin-bottom: var(--space-5, 20px);
}

.ikn-dash-ideas__empty {
    color: var(--color-text-muted, #5b6472);
    padding: var(--space-6, 24px) 0;
}

.ikn-dash-ideas__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ikn-dash-ideas__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4, 16px);
    padding: var(--space-4, 16px) 0;
    border-bottom: 1px solid var(--color-border);
}

.ikn-dash-ideas__item:last-child {
    border-bottom: none;
}

.ikn-dash-ideas__main {
    min-width: 0;
}

.ikn-dash-ideas__title {
    display: block;
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.35;
}

a.ikn-dash-ideas__title:hover {
    color: var(--color-primary);
}

.ikn-dash-ideas__title--plain {
    color: var(--color-text-muted, #5b6472);
}

.ikn-dash-ideas__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 8px);
    margin-top: var(--space-1, 4px);
    font-size: var(--text-xs);
    color: var(--color-text-muted, #5b6472);
}

/* ── Ενέργειες ανά ιδέα ─────────────────────────────────────────────────────
   Κουμπί και σήμανση κατάστασης μαζί, δεξιά. `flex-shrink: 0` ώστε ένας
   μακρύς τίτλος να μη στριμώχνει το κουμπί σε δύο γραμμές. */
.ikn-dash-ideas__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    flex-shrink: 0;
}

/* ── Όψη επεξεργασίας ──────────────────────────────────────────────────── */
.ikn-dash-ideas__back {
    margin: 0 0 var(--space-4, 16px);
    font-size: var(--text-sm);
}

.ikn-dash-ideas__back a {
    color: var(--color-text-muted, #5b6472);
    text-decoration: none;
}

.ikn-dash-ideas__back a:hover,
.ikn-dash-ideas__back a:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}

.ikn-dash-ideas__pending {
    display: inline-block;
    padding: 2px var(--space-2, 8px);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm, 4px);
    font-size: var(--text-xs);
    line-height: 1.6;
    color: var(--color-text-muted, #5b6472);
    white-space: nowrap;
}

.ikn-dash-ideas__edit-title {
    margin: 0 0 var(--space-2, 8px);
    font-size: var(--text-lg);
    color: var(--color-text);
}

@media (max-width: 600px) {
    .ikn-dash-ideas__item {
        flex-direction: column;
        gap: var(--space-2, 8px);
    }

    .ikn-dash-ideas__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ── Ενεργή υποκαρτέλα: ρητή δήλωση σε κάθε κατάσταση ───────────────────────
   Το χρώμα κειμένου της ενεργής «πίλουλας» δηλώνεται μαζί με το :hover, ώστε
   καμία σειρά κατάταξης να μην μπορεί να το αφήσει ίδιο με το φόντο.
   Στο dark theme το primary είναι χρυσό — λευκό πάνω του έχει κακή αντίθεση,
   οπότε το κείμενο γίνεται σκούρο. */
.ikn-subtabs__link--active,
.ikn-subtabs__link--active:hover,
.ikn-subtabs__link--active:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
}

[data-theme="dark"] .ikn-subtabs__link--active,
[data-theme="dark"] .ikn-subtabs__link--active:hover,
[data-theme="dark"] .ikn-subtabs__link--active:focus-visible {
    color: #16203a;
}

/* ── Λογαριασμός → Το προφίλ μου ────────────────────────────────────────── */

.ikn-profile__section {
    padding: var(--space-6, 24px) 0;
    border-bottom: 1px solid var(--color-border);
    max-width: 520px;
}

.ikn-profile__section:last-child {
    border-bottom: none;
}

.ikn-profile__title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold, 600);
    margin: 0 0 var(--space-4, 16px);
}

.ikn-profile__avatar-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5, 20px);
    flex-wrap: wrap;
}

.ikn-profile__avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.ikn-profile__avatar-actions {
    flex: 1 1 260px;
    min-width: 240px;
}

.ikn-profile__inline-form {
    display: inline-block;
    margin-top: var(--space-2, 8px);
}

/* Ενημερωτικό μήνυμα — υπήρχαν ήδη --success και --error */
.form-notice--info {
    background: rgba(29, 78, 216, 0.06);
    color: #1d4ed8;
    border: 1px solid rgba(29, 78, 216, 0.20);
}

[data-theme="dark"] .form-notice--info {
    color: #93b4ff;
}

/* ── Λογαριασμός → Ειδοποιήσεις ─────────────────────────────────────────── */

.ikn-notify__option {
    padding: var(--space-3, 12px) 0;
    border-bottom: 1px solid var(--color-border);
}

.ikn-notify__option:last-of-type {
    border-bottom: none;
    margin-bottom: var(--space-4, 16px);
}

.ikn-notify__label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3, 12px);
    cursor: pointer;
}

.ikn-notify__label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.ikn-notify__label .form-hint {
    display: block;
    margin-top: 2px;
}

/* Το κουμπί παρακολούθησης μέσα στη λίστα δεν πιάνει όλο το πλάτος,
   σε αντίθεση με το ίδιο κουμπί στο sidebar της ιδέας. */
.ikn-notify .ikn-watch-toggle {
    width: auto;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full, 999px);
    font-size: var(--text-xs);
}

/* ── Κουμπί παρακολούθησης: η κατάσταση διαβάζεται χωρίς hover ──────────────
   Σε κινητό δεν υπάρχει hover. Γι' αυτό το «Παρακολουθείτε» είναι πράσινο ΚΑΙ
   σε ηρεμία· το κόκκινο στο hover είναι βοήθεια για ποντίκι, όχι ο φορέας της
   πληροφορίας. Το χρώμα δεν στέκει ποτέ μόνο του — η ετικέτα αλλάζει επίσης,
   και το aria-pressed το λέει στους αναγνώστες οθόνης. */

/* ΔΕΝ παρακολουθεί → στο hover δείχνει τι θα γίνει */
.ikn-watch-toggle:not(.idea-action-link--active):hover,
.ikn-watch-toggle:not(.idea-action-link--active):focus-visible {
    color: var(--color-success);
    background: rgba(22, 163, 74, .08);
}

.ikn-watch-toggle:not(.idea-action-link--active):hover .idea-action-link__icon,
.ikn-watch-toggle:not(.idea-action-link--active):focus-visible .idea-action-link__icon {
    color: var(--color-success);
}

/* ΠΑΡΑΚΟΛΟΥΘΕΙ → πράσινο σε ηρεμία */
.ikn-watch-toggle.idea-action-link--active {
    color: var(--color-success);
    background: rgba(22, 163, 74, .06);
}

.ikn-watch-toggle.idea-action-link--active .idea-action-link__icon {
    color: var(--color-success);
    fill: currentColor;
    fill-opacity: .18;
}

/* ...και κόκκινο στο hover, γιατί το κλικ ακυρώνει */
.ikn-watch-toggle.idea-action-link--active:hover,
.ikn-watch-toggle.idea-action-link--active:focus-visible {
    color: var(--color-danger);
    background: rgba(220, 38, 38, .08);
}

.ikn-watch-toggle.idea-action-link--active:hover .idea-action-link__icon,
.ikn-watch-toggle.idea-action-link--active:focus-visible .idea-action-link__icon {
    color: var(--color-danger);
    fill-opacity: .18;
}

/* Σε σκούρο φόντο τα βασικά πράσινο/κόκκινο σκοτεινιάζουν πολύ. */
[data-theme="dark"] .ikn-watch-toggle:not(.idea-action-link--active):hover,
[data-theme="dark"] .ikn-watch-toggle:not(.idea-action-link--active):focus-visible,
[data-theme="dark"] .ikn-watch-toggle.idea-action-link--active {
    color: #4ade80;
}

[data-theme="dark"] .ikn-watch-toggle:not(.idea-action-link--active):hover .idea-action-link__icon,
[data-theme="dark"] .ikn-watch-toggle.idea-action-link--active .idea-action-link__icon {
    color: #4ade80;
}

[data-theme="dark"] .ikn-watch-toggle.idea-action-link--active:hover,
[data-theme="dark"] .ikn-watch-toggle.idea-action-link--active:focus-visible,
[data-theme="dark"] .ikn-watch-toggle.idea-action-link--active:hover .idea-action-link__icon {
    color: #f87171;
}

/* ── Σήμα αδιάβαστων στο avatar ─────────────────────────────────────────── */

.topbar__avatar-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.topbar__badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--color-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--color-bg, #fff);
}

/* ── Λογαριασμός → Ειδοποιήσεις (η λίστα) ──────────────────────────────── */

.ikn-inbox__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ikn-inbox__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3, 12px);
    padding: var(--space-4, 16px) var(--space-3, 12px);
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 4px);
}

.ikn-inbox__item:last-child {
    border-bottom: none;
}

.ikn-inbox__item--unread {
    background: var(--color-bg-subtle, #f5f6f8);
}

.ikn-inbox__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    margin-top: 7px;
    flex-shrink: 0;
}

.ikn-inbox__dot--empty {
    background: transparent;
}

.ikn-inbox__body {
    min-width: 0;
}

.ikn-inbox__text {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.45;
}

a.ikn-inbox__text:hover {
    color: var(--color-primary);
}

.ikn-inbox__item--unread .ikn-inbox__text {
    font-weight: var(--font-weight-semibold, 600);
}

.ikn-inbox__time {
    display: block;
    margin-top: 2px;
    font-size: var(--text-xs);
    color: var(--color-text-muted, #5b6472);
}

/* ── Κείμενο μόνο για αναγνώστες οθόνης ─────────────────────────────────────
   Το πρότυπο του WordPress. ΔΕΝ χρησιμοποιούμε display:none ή visibility:hidden:
   αυτά κρύβουν το κείμενο και από τους αναγνώστες οθόνης, δηλαδή ακυρώνουν τον
   λόγο ύπαρξής του. Εδώ το στοιχείο παραμένει στο δέντρο προσβασιμότητας, απλώς
   έξω από το ορατό πλαίσιο. */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    word-wrap: normal !important;
}

/* Όταν παίρνει εστίαση (π.χ. σύνδεσμος παράκαμψης) πρέπει να γίνεται ορατό. */
.screen-reader-text:focus {
    position: static !important;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
}

/* ── Ειδοποιήσεις: εργαλειοθήκη, επιλογή, σελιδοποίηση ──────────────────── */

.ikn-inbox__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4, 16px);
    flex-wrap: wrap;
    padding-bottom: var(--space-3, 12px);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-2, 8px);
}

.ikn-inbox__selectall {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    font-size: var(--text-sm);
    color: var(--color-text-muted, #5b6472);
    cursor: pointer;
}

.ikn-inbox__check,
.ikn-inbox__selectall input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.ikn-inbox__check {
    margin-top: 4px;
}

.ikn-inbox__pager,
.ikn-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4, 16px);
    padding: var(--space-5, 20px) 0;
}

.ikn-pager__status {
    font-size: var(--text-sm);
    color: var(--color-text-muted, #5b6472);
}

.ikn-inbox__danger {
    padding-top: var(--space-4, 16px);
    border-top: 1px solid var(--color-border);
    text-align: right;
}

.ikn-inbox__delete-all {
    color: var(--color-danger);
}

.ikn-inbox__delete-all:hover {
    background: rgba(220, 38, 38, .08);
}

/* Ανενεργό κουμπί: δηλώνει ότι λείπει κάτι, δεν κρύβεται */
#ikn-inbox-delete[disabled] {
    opacity: .45;
    cursor: not-allowed;
}
