/**
 * kinetic.css — Kinetic Precision design system for eMTBnews.com
 * Custom styles supplementing Tailwind CDN
 */

/* ── Material Symbols ── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

/* ── Text effects ── */
.text-stroke {
    -webkit-text-stroke: 1px rgba(243, 255, 202, 0.3);
    color: transparent;
}

.text-gradient-primary {
    background: linear-gradient(to right, #f3ffca, #cafd00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero gradient overlay ── */
.hero-gradient {
    background: linear-gradient(to bottom, transparent 0%, #0e0e0e 100%);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0e0e0e; }
::-webkit-scrollbar-thumb { background: #484847; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #767575; }

/* ── Article body — content from database ── */
.article-body {
    color: #adaaaa;
    line-height: 1.85;
    font-size: 1.0625rem;
}
.article-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.article-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.01em;
}
.article-body p {
    margin-bottom: 1.5rem;
}
.article-body img {
    border-radius: 0.5rem;
    width: 100%;
    height: auto;
    margin: 1.5rem 0;
}
.article-body a {
    color: #f3ffca;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-body a:hover { color: #cafd00; }
.article-body ul,
.article-body ol {
    margin: 0.5rem 0 1.5rem 1.5rem;
}
.article-body li {
    margin-bottom: 0.5rem;
}
.article-body blockquote {
    border-left: 4px solid #cafd00;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    font-size: 1.125rem;
    color: #ffffff;
}
.article-body strong { color: #ffffff; }
.article-body em { color: #f3ffca; }
.article-body hr {
    border: none;
    border-top: 1px solid #484847;
    margin: 2rem 0;
    opacity: 0.3;
}

/* ── Search overlay ── */
#searchOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6rem;
}
#searchOverlay.active {
    display: flex;
}

/* ── Pagination ── */
.kinetic-pagination {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.kinetic-pagination a,
.kinetic-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.625rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.15s ease;
    text-decoration: none;
}
.kinetic-pagination a {
    color: #adaaaa;
    background: #131313;
}
.kinetic-pagination a:hover {
    color: #f3ffca;
    background: #1a1a1a;
}
.kinetic-pagination .current {
    background: #cafd00;
    color: #3a4a00;
}
.kinetic-pagination .ellipsis {
    color: #484847;
    background: transparent;
}

/* ── Hero title — prevent overflow on long Polish words ── */
[lang="pl"].font-headline,
[lang="pl"] .font-headline {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* ── Image placeholder (no-image articles) ── */
.img-placeholder {
    background: linear-gradient(135deg, #131313 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-placeholder::after {
    content: 'eMTB';
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 1.5rem;
    color: #484847;
    letter-spacing: -0.05em;
}

/* ── Gallery lightbox trigger ── */
.gallery-item { cursor: zoom-in; }

/* ── Tag cloud ── */
.tag-chip {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #131313;
    border-radius: 0.25rem;
    color: #adaaaa;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.15s;
}
.tag-chip:hover {
    background: #1a1a1a;
    color: #f3ffca;
}

/* ── Energy bar (battery/power indicator) ── */
.energy-bar {
    height: 4px;
    background: linear-gradient(to right, #ff7351, #f3ffca);
    border-radius: 2px;
}

/* ── No articles state ── */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #484847;
}
.empty-state .material-symbols-outlined {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}
