:root {
    --emerald-gold: #c5a880;
    --forest-dark: #040b08;
    --forest-main: #0a1712;
    --glass-border: rgba(197, 168, 128, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-tap-highlight-color: transparent;
    background: var(--forest-dark);
    color: white;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--emerald-gold);
    z-index: 99999;
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.8);
    transition: width 0.1s ease-out;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #060d09;
}

::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.4);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(197, 168, 128, 0.8);
    }

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

.page-header {
    padding: clamp(160px, 20vh, 220px) 20px clamp(80px, 10vh, 120px) 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
    background: var(--forest-dark);
}

.header-bg-layer {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: url('/orman-arka.jpg') center center / cover no-repeat;
    filter: blur(5px) brightness(0.22) contrast(1.05);
    z-index: 1;
}

.header-content-wrapper {
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 6vw, 56px);
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.page-subtitle {
    color: var(--emerald-gold);
    font-size: clamp(10px, 1.5vw, 12px);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(197, 168, 128, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(197, 168, 128, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.archive-controls-bar {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 10;
    background: rgba(10, 23, 18, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

    .search-box input {
        width: 100%;
        background: rgba(0,0,0,0.5);
        border: 1px solid rgba(255,255,255,0.15);
        color: white;
        padding: 14px 14px 14px 42px;
        border-radius: 12px;
        font-size: 14px;
        outline: none;
        transition: 0.3s;
        font-family: 'Inter', sans-serif;
    }

        .search-box input:focus {
            border-color: var(--emerald-gold);
            box-shadow: 0 0 15px rgba(197,168,128,0.2);
        }

    .search-box .s-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        pointer-events: none;
    }

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .filter-pill.active, .filter-pill:hover {
        background: var(--emerald-gold);
        color: var(--forest-dark);
        border-color: var(--emerald-gold);
        box-shadow: 0 4px 15px rgba(197,168,128,0.4);
    }

.news-archive-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 400px;
}

.news-archive-card {
    display: flex;
    background: linear-gradient(180deg, rgba(20,54,37,0.3) 0%, rgba(10,23,18,0.8) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

    .news-archive-card:hover {
        border-color: var(--emerald-gold);
        box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(197, 168, 128, 0.2);
    }

.news-card-img-zone {
    flex: 1;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    background: #060d09;
}

    .news-card-img-zone img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

.news-archive-card:hover .news-card-img-zone img {
    transform: scale(1.05);
}

.news-card-text-zone {
    flex: 1.3;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.news-card-tag {
    background: var(--emerald-gold);
    color: var(--forest-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card-date, .news-card-author {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

    .news-card-author strong {
        color: white;
    }

.news-card-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 3vw, 30px);
    color: white;
    margin-bottom: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.news-card-excerpt {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(197,168,128,0.2);
    border-top-color: var(--emerald-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 100px auto;
}

.empty-hub-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255,255,255,0.5);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    border: 1px dashed rgba(255,255,255,0.1);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 992px) {
    .archive-controls-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .filter-pills {
        justify-content: center;
    }

    .news-archive-card {
        flex-direction: column;
    }

    .news-card-img-zone {
        min-height: 280px;
    }

    .news-card-text-zone {
        padding: 40px 25px;
        text-align: center;
        align-items: center;
    }

    .news-card-meta {
        justify-content: center;
    }

    .news-card-excerpt {
        text-align: center;
    }
}
