/* ============================================================
   Tag page – /public/assets/front/tags/tags.css
   Container: 1260px (matches site header/footer)
   ============================================================ */

/* ── Page wrapper with unified font ── */
.tag-page {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #fff;
}


/* ── Breadcrumb (matches /nomothesia, /labordoc, /anaskopisi, /ias, /calendar) ── */
.tag-breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    padding: 8px 0;
    font-size: 12px;
}
.tag-breadcrumb {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    list-style: none;
}
.tag-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}
.tag-breadcrumb a:hover { color: #005a77; }
.tag-breadcrumb .bc-sep {
    color: #cbd5e1;
    margin: 0 2px;
}
.tag-breadcrumb .bc-current {
    color: #1e293b;
    font-weight: 600;
}


/* ── Page Banner (unified taxheaven pattern) ── */
.tag-page-banner {
    background: linear-gradient(135deg, #005a77 0%, #00749a 100%);
    position: relative;
    overflow: hidden;
}
.tag-page-banner::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.tag-page-banner::after {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}
.tag-banner-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.tag-banner-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0 14px;
    flex-wrap: wrap;
}
.tag-banner-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.tag-banner-text { flex: 1; min-width: 0; }
.tag-banner-text h1 {
    margin: 0 0 2px;
    font-size: 22px;
    font-weight: 700;
    font-family: 'DM Serif Display', Georgia, serif;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.2px;
}
.tag-banner-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    font-family: 'DM Sans', -apple-system, sans-serif;
}


/* ── Hero (below banner: description + stats) ── */
.tag-hero {
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 24px 0;
}
.tag-hero-desc {
    font-size: 15px;
    color: #495057;
    max-width: 780px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.tag-hero-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.tag-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    padding: 4px 13px;
    border-radius: 50px;
    font-weight: 400;
}
.tag-hero-stat strong { font-weight: 600; }
.tag-stat-news     { background: #ebf5fb; color: #1a5276; }
.tag-stat-circular { background: #f4ecf7; color: #6c3483; }
.tag-stat-law      { background: #e8f8f0; color: #1e8449; }
.tag-stat-event    { background: #fef9e7; color: #b7950b; }
.tag-stat-almanak  { background: #fdebd0; color: #b35e08; }
.tag-hero-updated {
    font-size: 12px;
    color: #adb5bd;
    margin-bottom: 22px;
}
.tag-hero-divider {
    height: 1px;
    background: #e9ecef;
}


/* ── Page layout ── */
.tag-page-layout {
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
}
@media ( max-width: 960px ) {
    .tag-page-layout {
        grid-template-columns: 1fr;
    }
}


/* ── Toolbar (filters + search + year + sort) ── */
.tag-toolbar {
    position: sticky;
    top: 0;   /* θα γίνει 104px αν το header είναι fixed */
    z-index: 90;
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 4px;
}
.tag-toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tag-toolbar-row + .tag-toolbar-row {
    margin-top: 10px;
}

/* Filter pills */
.tag-filter-btn {
    padding: 7px 15px;
    font-size: 13px;
    border-radius: 50px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
    font-family: inherit;
}
.tag-filter-btn:hover {
    border-color: #2980b9;
    color: #1a5276;
    background: #ebf5fb;
    text-decoration: none;
}
.tag-filter-btn.active {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
    font-weight: 500;
}
.tag-filter-count {
    font-size: 11px;
    opacity: 0.8;
    margin-left: 3px;
}

/* Search input */
.tag-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 320px;
}
.tag-search-input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    font-size: 13px;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    background: #f8f9fa;
    color: #343a40;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}
.tag-search-input:focus {
    border-color: #2980b9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(41,128,185,0.1);
}
.tag-search-input::placeholder { color: #adb5bd; }
.tag-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #adb5bd;
    pointer-events: none;
}

/* Year select */
.tag-year-select {
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    background: #fff;
    color: #495057;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s;
    font-family: inherit;
}
.tag-year-select:hover { border-color: #2980b9; }
.tag-year-select:focus { border-color: #2980b9; box-shadow: 0 0 0 3px rgba(41,128,185,0.1); }

/* Sort toggle */
.tag-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    background: #fff;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}
.tag-sort-btn:hover { border-color: #2980b9; color: #1a5276; text-decoration: none; }
.tag-sort-btn svg { width: 14px; height: 14px; }
.tag-sort-btn.sort-asc svg { transform: rotate(180deg); }

/* Results counter */
.tag-results-count {
    font-size: 12px;
    color: #adb5bd;
    margin-left: auto;
}


/* ── Timeline items ── */
.tag-timeline-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.15s;
    border-radius: 8px;
}
.tag-timeline-item:hover {
    background: #f8f9fa;
    margin: 0 -12px;
    padding: 18px 12px;
}
.tag-timeline-item:last-child { border-bottom: none; }

.tl-date { text-align: center; padding-top: 3px; }
.tl-day {
    font-size: 19px;
    font-weight: 700;
    color: #343a40;
    line-height: 1;
    margin-bottom: 2px;
}
.tl-month {
    font-size: 11px;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tl-body { min-width: 0; }

.tl-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}
.tl-badge-news     { background: #ebf5fb; color: #1a5276; }
.tl-badge-circular { background: #f4ecf7; color: #6c3483; }
.tl-badge-law      { background: #e8f8f0; color: #1e8449; }
.tl-badge-event    { background: #fef9e7; color: #b7950b; }
.tl-badge-almanak  { background: #fdebd0; color: #b35e08; }

.tl-title {
    font-size: 15px;
    font-weight: 500;
    color: #343a40;
    line-height: 1.45;
    margin-bottom: 4px;
}
.tl-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.tl-title a:hover { color: #2980b9; }

.tl-summary {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* No results */
.tag-no-results {
    text-align: center;
    padding: 48px 20px;
    color: #adb5bd;
    font-size: 14px;
}
.tag-no-results svg { margin-bottom: 12px; }


/* ── Pagination ── */
.tag-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}
.tag-pagination .page-item .page-link,
.tag-pagination a,
.tag-pagination span.current-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #fff;
    font-size: 13px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.15s;
}
.tag-pagination a:hover,
.tag-pagination .page-item .page-link:hover {
    border-color: #2980b9;
    color: #1a5276;
    background: #ebf5fb;
}
.tag-pagination span.current-page,
.tag-pagination .page-item.active .page-link {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
    font-weight: 500;
}


/* ── Sidebar ── */
.tag-sidebar-section { margin-bottom: 28px; }
.tag-sidebar-heading {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #adb5bd;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Pinned legislation cards */
.tag-pinned-item {
    display: block;
    padding: 12px 14px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.tag-pinned-item:hover {
    border-color: #2980b9;
    background: #ebf5fb;
    text-decoration: none;
}
.tag-pinned-type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.tag-pinned-type-law      { color: #1e8449; }
.tag-pinned-type-circular { color: #6c3483; }
.tag-pinned-title {
    font-size: 13px;
    font-weight: 500;
    color: #343a40;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tag-pinned-item:hover .tag-pinned-title { color: #1a5276; }
.tag-pinned-date {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 4px;
}

/* Related / popular tags */
.tag-related-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 13px;
    color: #495057;
    text-decoration: none;
    transition: all 0.15s;
}
.tag-related-link:last-child { border-bottom: none; }
.tag-related-link:hover { color: #2980b9; text-decoration: none; }
.tag-related-link:hover .tag-related-count { background: #ebf5fb; color: #1a5276; }
.tag-related-count {
    font-size: 11px;
    color: #adb5bd;
    background: #f1f3f5;
    padding: 2px 9px;
    border-radius: 50px;
    transition: all 0.15s;
    font-weight: 500;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Newsletter CTA */
.tag-newsletter {
    background: linear-gradient(135deg, #0e3650, #1a5276);
    border-radius: 12px;
    padding: 24px 20px;
    color: #fff;
}
.tag-newsletter h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}
.tag-newsletter p {
    font-size: 13px;
    opacity: 0.8;
    margin: 0 0 16px;
    line-height: 1.5;
}
.tag-newsletter-btn {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}
.tag-newsletter-btn:hover { background: #d35400; color: #fff; text-decoration: none; }


/* ── Load animation ── */
@keyframes tagFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tag-animate {
    animation: tagFadeUp 0.3s ease both;
}

/* ============================================================
   Tags LIST page – /tags  (append to tags.css)
   ============================================================ */

/* Page wrap (single column, no sidebar) */
.tl-page-wrap {
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* Popular tags cloud in hero */
.tl-popular-cloud {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.tl-popular-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd;
    margin-right: 4px;
}
.tl-popular-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    font-size: 13px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}
.tl-popular-pill:hover {
    border-color: #2980b9;
    color: #1a5276;
    background: #ebf5fb;
    text-decoration: none;
}
.tl-popular-count {
    font-size: 11px;
    color: #adb5bd;
    background: #f1f3f5;
    padding: 1px 7px;
    border-radius: 50px;
    font-weight: 500;
}
.tl-popular-pill:hover .tl-popular-count {
    background: #d4e6f1;
    color: #1a5276;
}

/* Greek letter filter row */
.tl-letters-row {
    gap: 4px !important;
}
.tl-letter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.15s;
    font-family: inherit;
}
.tl-letter-btn:hover {
    border-color: #2980b9;
    color: #1a5276;
    background: #ebf5fb;
    text-decoration: none;
}
.tl-letter-btn.active {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
}

/* Tags grid */
.tl-tags-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
    gap: 10px;
    margin-top: 20px;
}

.tl-tag-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid #f1f3f5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}
.tl-tag-card:hover {
    border-color: #2980b9;
    background: #ebf5fb;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.tl-tag-name {
    font-size: 14px;
    font-weight: 500;
    color: #343a40;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tl-tag-card:hover .tl-tag-name {
    color: #1a5276;
}
.tl-tag-count {
    font-size: 12px;
    color: #adb5bd;
    background: #f8f9fa;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 500;
    flex-shrink: 0;
    margin-left: 12px;
    transition: all 0.2s;
}
.tl-tag-card:hover .tl-tag-count {
    background: #d4e6f1;
    color: #1a5276;
}

@media ( max-width: 600px ) {
    .tl-tags-grid {
        grid-template-columns: 1fr;
    }
    .tl-letters-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
}
