@import url('../typography-responsive.css');

:root {
    --yellow: #ffbd59;
    --red: #ff3131;
    --white: #fffef8;
    --black: #080517;
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'Archivo', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
}

/* ── NAV ── */
.blog-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--black);
    border-bottom: 2px solid var(--yellow);
}

.blog-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.blog-nav-logo img {
    height: 32px;
    width: 32px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.blog-nav-logo:hover img {
    filter: brightness(0) saturate(100%) invert(77%) sepia(55%) saturate(500%) hue-rotate(340deg) brightness(103%) contrast(97%);
}

.blog-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.blog-nav-links a {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-nav-links a:hover,
.blog-nav-links a.active {
    color: var(--yellow);
}

.blog-nav-cta {
    background-color: var(--red);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border: 2px solid var(--red);
    transition: all 0.3s !important;
}

.blog-nav-cta:hover {
    background-color: var(--yellow) !important;
    border-color: var(--yellow) !important;
    color: var(--black) !important;
}

@media (max-width: 768px) {
    .blog-nav-links { display: none; }
}

/* ── HERO ── */
.blog-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 189, 89, 0.15);
}

.blog-header-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.blog-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--yellow);
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.blog-header p {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255, 254, 248, 0.75);
    font-size: 1.05rem;
}

/* ── CONTROLS ── */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.blog-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.blog-search {
    flex: 1 1 240px;
    min-width: 0;
}

.blog-search input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 254, 248, 0.05);
    border: 2px solid rgba(255, 189, 89, 0.25);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.blog-search input::placeholder {
    color: rgba(255, 254, 248, 0.4);
}

.blog-search input:focus {
    outline: none;
    border-color: var(--yellow);
}

.blog-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-sort button {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.65rem 0.9rem;
    background: transparent;
    border: 2px solid rgba(255, 189, 89, 0.3);
    color: rgba(255, 254, 248, 0.75);
    cursor: pointer;
    transition: all 0.2s;
}

.blog-sort button:hover,
.blog-sort button.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}

/* ── STATIC LIST (SEO / no-JS) ── */
.noscript-list {
    margin-bottom: 2rem;
}

.noscript-list article {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 189, 89, 0.12);
}

.noscript-list h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.noscript-list h2 a {
    color: var(--yellow);
    text-decoration: none;
}

.noscript-list h2 a:hover {
    color: var(--white);
}

.noscript-list p {
    color: rgba(255, 254, 248, 0.65);
    font-size: 0.95rem;
}

/* ── GRID ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: rgba(255, 254, 248, 0.5);
    font-family: var(--font-display);
    letter-spacing: 0.08em;
}

.blog-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 254, 248, 0.03);
    border: 2px solid rgba(255, 189, 89, 0.2);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, transform 0.25s, background 0.25s;
    min-width: 0;
}

.blog-card:hover {
    border-color: var(--yellow);
    background: rgba(255, 189, 89, 0.06);
    transform: translateY(-3px);
}

.blog-card-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(255, 49, 49, 0.12);
    border: 1px solid rgba(255, 49, 49, 0.35);
}

.blog-card-content {
    flex: 1;
    min-width: 0;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    color: rgba(255, 254, 248, 0.5);
}

.blog-card-category {
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.35;
    color: var(--yellow);
    margin-bottom: 0.5rem;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 254, 248, 0.7);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
}

.blog-card-read {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--white);
}

.blog-card:hover .blog-card-read {
    color: var(--yellow);
}

/* ── EMPTY STATE ── */
.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    border: 2px dashed rgba(255, 189, 89, 0.25);
}

.blog-empty h3 {
    font-family: var(--font-display);
    color: var(--yellow);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-empty p {
    color: rgba(255, 254, 248, 0.65);
    margin-bottom: 1.5rem;
}

.btn-cta {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: var(--red);
    border: 2px solid var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.25s;
}

.btn-cta:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}

@media (max-width: 768px) {
    .blog-header,
    .blog-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }
}
