/* ---------------- SEARCH BAR ---------------- */
#search-bar {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 50px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

#search-bar:focus {
    outline: none;
    border-color: #0f59aa;
    box-shadow: 0 4px 12px rgba(15, 89, 170, 0.3);
}

.no-articles-message {
    padding: 40px;
    text-align: center;
    font-size: 1.3rem;
    color: #575757;
}


/* ---------------- TAG FILTERS ---------------- */
.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 1.5rem;
    justify-content: center;
}

.tag-filter {
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid transparent;
    background: none;
    font-weight: 500;
}

/* Gradient text for unselected tags */
.tag-filter.tag-bientot { background: none; color: transparent;
    background-clip: text; -webkit-background-clip: text;
    background-image: linear-gradient(45deg, #97617d, #9e82ad); }

.tag-filter.tag-dev-log { background: none; color: transparent;
    background-clip: text; -webkit-background-clip: text;
    background-image: linear-gradient(45deg, #5822bc, #3976a6); }

.tag-filter.tag-update { background: none; color: transparent;
    background-clip: text; -webkit-background-clip: text;
    background-image: linear-gradient(45deg, #a5551b, #ca3ba1); }

.tag-filter.tag-construction { background: none; color: transparent;
    background-clip: text; -webkit-background-clip: text;
    background-image: linear-gradient(45deg, #d53369, #daae51); }

.tag-filter.tag-information { background: none; color: transparent;
    background-clip: text; -webkit-background-clip: text;
    background-image: linear-gradient(45deg, #187cb5, #75a52c); }

.tag-filter.tag-rulantica { background: none; color: transparent;
    background-clip: text; -webkit-background-clip: text;
    background-image: linear-gradient(45deg, #386791, #0f59aa); }

.tag-filter.tag-hotels { background: none; color: transparent;
    background-clip: text; -webkit-background-clip: text;
    background-image: linear-gradient(45deg, #8e2143, #97566d); }

.tag-filter.tag-attraction { background: none; color: transparent;
    background-clip: text; -webkit-background-clip: text;
    background-image: linear-gradient(45deg, #bf1b4a, #2759b6); }

.tag-filter.tag-europa-park { background: none; color: transparent;
    background-clip: text; -webkit-background-clip: text;
    background-image: linear-gradient(45deg, #a69254, #958043); }


/* Selected tag: gradient background, white text */
.tag-filter.active {
    color: white !important;
}
.tag-filter.active.tag-bientot { background: linear-gradient(45deg, #97617d, #9e82ad); }
.tag-filter.active.tag-dev-log { background: linear-gradient(45deg, #5822bc, #3976a6); }
.tag-filter.active.tag-update { background: linear-gradient(45deg, #a5551b, #ca3ba1); }
.tag-filter.active.tag-construction { background: linear-gradient(45deg, #d53369, #daae51); }
.tag-filter.active.tag-information { background: linear-gradient(45deg, #187cb5, #75a52c); }
.tag-filter.active.tag-rulantica { background: linear-gradient(45deg, #386791, #0f59aa); }
.tag-filter.active.tag-hotels { background: linear-gradient(45deg, #8e2143, #97566d); }
.tag-filter.active.tag-attraction { background: linear-gradient(45deg, #bf1b4a, #2759b6); }
.tag-filter.active.tag-europa-park { background: linear-gradient(45deg, #a69254, #958043); }

/* ---------------- PAGE STRUCTURE ---------------- */
.search-container {
    max-width: 900px;
    margin: 0 auto;
}

.articles-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem 2rem;
}

.article-page_articles-container {
    margin-bottom: 4rem;
}

/* ---------------- ARTICLE CARD ---------------- */
.article-page_article {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 1.7rem;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.05) 0 4px 10px;
    max-height: 9rem;
    height: 9rem;
    overflow: hidden;
}

.article-page_article img {
    width: 22%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.article-page_article-content {
    flex: 1;
    margin-top: 0.8rem;
    min-width: 0;
    margin-right: 1.2rem;
}

.article-page_article-content h3 {
    font-size: 1.2rem;
    margin: 0;
}

.article-page_article-content p {
    font-family: Gotham_Book, serif;
    margin: 0.65rem 0 0.3rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Tags inside article cards */
.article-page_tags {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

/* Article link/button */
.article-page_article-button {
    color: rgb(15, 89, 170);
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
    margin-top: 0.5rem;
}

.article-page_article-button:hover {
    color: rgb(2, 48, 97);
    transition: color 0.3s;
}

/* ---------------- GENERAL TEXT ---------------- */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

.articles-page h2 {
    text-align: center;
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    color: #112145;
}

/* ---------------- LOADING ---------------- */
.loading {
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem;
    color: #888;
}
