/* =====================
   RESET / BASE
===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #e8f1fb;
  color: #111;
  overflow-x: hidden;
  padding: 0 16px;
}

/* =====================
   HEADER
===================== */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 1000;
  padding: 10px 0;
}

.sticky-content {
  max-width: 1200px;
  margin: 0 auto;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-row h2 {
  font-weight: 700;
  font-size: 22px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
}

#search-input {
  flex: 1;
  height: 36px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0 10px;
  margin-right: 5px;
}

/* =====================
   MAIN LAYOUT
===================== */
.content-wrapper {
  max-width: 800px;
  margin: 90px auto 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.container {
  flex: 1;
  background: #fff;
  padding: 20px 32px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.container-title {
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
  margin-bottom: 12px;
  font-size: 18px;
  color: #243A52;
}

/* =====================
   POPULAR SECTION
===================== */
#popular-section {
  margin-bottom: 30px;
}

#popular-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #243A52;
}

/* --- TABS --- */
.popular-tabs {
  display: inline-flex;
  background: #f0f3f8;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 12px;
}

.popular-tab {
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 999px;
  color: #555;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.popular-tab:hover {
  background: rgba(0,0,0,0.05);
}

.popular-tab.active {
  background: #0077cc;
  color: #fff;
  font-weight: 600;
}

/* =====================
   LISTS & LINKS
===================== */
#article-list,
#popular-list {
  list-style: none;
}

li {
  padding: 12px 0;
  
}

li:last-child {
  border-bottom: none;
}

.headline-block a {
  text-decoration: none;
  color: #001f3f;
  font-size: 15px;
  line-height: 1.4;
}

.headline-block a:hover {
  text-decoration: underline;
}

/* =====================
   KEYWORD / PIHVI
===================== */
.keyword-label {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;

  background: linear-gradient(135deg, #4f8cff, #6ea8ff);
  color: white;

  border-radius: 999px; /* pill shape */
  transition: all 0.2s ease;

  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.keyword-label:hover {
  background: linear-gradient(135deg, #3b73db, #5c95ff);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.keyword-label:active {
  transform: scale(0.95);
}

.keyword-text {
  display: block;
  font-size: 14px;
  font-style: italic;
  margin-top: 6px;
  color: #555;
}

/* =====================
   INFO BAR + REACTIONS
===================== */
.infobar {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
  flex-wrap: wrap;
}



.reactions {
  display: flex;
  gap: 8px;
}

.reaction-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0; /* hide count of like/dislike */
  color: #666;
}

.reaction-btn i {
  font-size: 14px;
  color: #9aa3ad;
}

.reaction-btn:hover i {
  color: #0077cc;
}

.reaction-btn.active i {
  color: #0077cc;
}

/* =====================
   BUTTONS
===================== */
.popular-load-more,
.popular-hide {
  margin-top: 10px;
  margin-right: 10px;
  padding: 7px 14px;
  font-size: 13px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
}

.popular-load-more {
  background: #0077cc;
}

.popular-load-more:hover {
  background: #0065ad;
}

.popular-hide {
  background: #555;
}

.popular-hide:hover {
  background: #444;
}

#load-more-articles {
    display: block;
    margin: 30px auto 40px;
    padding: 12px 28px;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;

    color: #111;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 999px;

    cursor: pointer;
    transition: 
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

#load-more-articles:hover {
    background-color: #e6e6e6;
    border-color: #ccc;
}

#load-more-articles:active {
    transform: scale(0.96);
}

#load-more-articles:disabled {
    opacity: 0.5;
    cursor: default;
}


/* =====================
   COOKIE BANNER
===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 12px 20px;
  z-index: 2000;
}

.cookie-content {
  max-width: 900px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-buttons button {
  margin-left: 10px;
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#accept-cookies {
  background: #0077cc;
  color: #fff;
}

#decline-cookies {
  background: #555;
  color: #fff;
}

/* =====================
   MOBILE
===================== */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
  }
  .headline-block a {
    font-size: 14px;
  }

  .container {
    width: 100%;
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
  }

  .popular-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .popular-tab {
    flex: 1;
    text-align: center;
  }
  li {
  padding: 5px 0;
  
}

}
