/* ==================================
   🌍 RESET & GLOBAL VARIABLES
================================== */

:root {
    --primary-color: #c1ff00;
    --background-color: #131313;
    --card-color: #1A1A1A;
    --headline-color: #FFFFFF;
    --text-color: #E8E9ED;
    --description-color: #a0a0a0;
    --border-radius: 8px;
    --font-primary: 'ANTON', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

.anton-regular {
  font-family: "Anton", serif;
  font-weight: 400;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    font-smooth: always;  /* Font antialiasing */
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

/* ==================================
   🎨 TYPOGRAFIE
================================== */

h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-top: 6rem;
    margin-bottom: 6rem;
    font-weight: normal;
    letter-spacing: .02rem;
}

h2 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: normal;
    letter-spacing: .02rem;
}

h2 a {
   color: var(--text-color);
   text-transform: uppercase;
   text-decoration: none;
}

p {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

/* ==================================
   📌 LAYOUT (HLAVNÍ STRUKTURA)
================================== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0rem;
}

/* ==================================
   🔗 HEADER & NAVIGATION
================================== */

.partial-view { /* Gradient blur, top-left */
  position: fixed;
  top: 0;
  left: 0;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-150px, -150px); /* Posun mimo obrazovku */
  filter: blur(150px); /* Aplikace rozmazání */
  opacity: 0.25; /* Opravená hodnota opacity */
  z-index: -1000;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    color: #E8E9ED;
    font-size: 2rem;
    text-decoration: none;
    letter-spacing: .02rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

nav {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    display: flex;
    gap: 3rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* ==================================
   🔥 FILTERS (Chips)
================================== */

.tag-filter-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tag-filter-container::-webkit-scrollbar {
    display: none;
}

button, .tag-chip {
    all: unset;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    background-color: var(--card-color);
    font-family: 'Montserrat', sans-serif;
    color: #E8E9ED;
    text-align: center;
}

.tag-chip.active {
    background: var(--card-color);
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px var(--primary-color);
    font-weight: 600;
}

.tag-chip .category-dot {
    width: 12px;
    height: 12px;
    margin-right: 4px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #1A1A1A;
}

.tag-chip:hover {
    background: var(--card-color);
    color: var(--primary-color);
}

/* ==================================
   📰 NEWSLETTER LIST & ITEMS
================================== */

.newsletter-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    gap: 1rem;
    padding-bottom: 4rem;
}

.newsletter-item {
    background: var(--card-color);
    padding: 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    width: calc(33.333% - 11px);
    min-width: 280px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: space-between;
}

.newsletter-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: radial-gradient(circle, rgba(44,44,44,1) 0%, rgba(26,26,26,0) 85%);
    transition: background 0.3s ease;
}

.category-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.category-dots {
    display: flex;
    align-items: center;
    position: relative;
}

.category-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-left: -4px;
    border: 1px solid #1A1A1A;
}

.category-dot:first-child {
    margin-left: 0;
}

/* Sloučená definice .category-names */
.category-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    color: var(--description-color);
    font-size: 0.8rem;
}

.newsletter-item:hover::before {
    background: radial-gradient(circle, rgba(206,255,68,1) 0%, rgba(26,26,26,0) 85%);
}

.newsletter-item:hover h2 {
    color: var(--primary-color);
}

/* ==================================
   ℹ️ NEWSLETTER INFO & META
================================== */
.categories {
    font-family: 'Montserrat', sans-serif;
    color: var(--description-color);
    font-size: 0.8rem;
}

.description {
    padding-top: 2rem;
    padding-bottom: 1rem;
    line-height: 1.2rem;
    color: var(--description-color);
}

.newsletter-meta {
    display: flex;
    align-items: flex-start;
    margin-top: auto;
    font-size: 0.8rem;
    color: #aaa;
}

.author {
    font-family: var(--font-secondary);
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;  
}

/* ==================================
   🔄 Button - load more
================================== */

.load-more-button {
    display: block;
    margin: 32px auto;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--card-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
}

.load-more-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: radial-gradient(circle, rgba(44,44,44,1) 0%, rgba(26,26,26,0) 85%);
    transition: background 0.3s ease;
    border-radius: 0.5rem 0.5rem 0 0;
}

.load-more-button:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transition: all 0.3s ease;
}

.load-more-button:hover::before {
   border-radius: 0;
   opacity: 0;  /* Skryje gradient */
}

/* ==================================
   ⏳ LOADING INDICATOR
================================== */

#loading-indicator {
    position: relative;
    margin: 2rem auto;
    z-index: 10;
    text-align: center;
}

/* ==================================
   🔗 Footer
================================== */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    border-top: solid 4px;
    border-color: #282727;
}

footer h2 {
    text-transform: lowercase;
    padding-top: 0.8rem;
}

footer p {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.copy {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
}

/* ==================================
   📱 RESPONSIVE DESIGN (NA KONCI SOUBORU)
================================== */

@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
} /* <-- Tady jsme přidali chybějící uzavírací závorku */

@media (max-width: 768px) {
    .newsletter-list {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .newsletter-item {
        /* Přepíšeme původní nastavení pro mobil */
        width: 100%;
        min-width: 0;
        flex: none;
    }

    h1 {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .newsletter-meta {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        width: calc(33.333% - 20px);
    }
   .tag-filter-container {
        overflow-x: visible;
        white-space: normal;
        flex-wrap: wrap;
    }
}
