/* ===== RESET ===== */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background-image: url(../images/Gemini_Generated_Image_ddenxbddenxbdden.png);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #111;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 0 40px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 14px;
  z-index: 9999;
}

.menu-item {
  position: relative;
  font-size: clamp(13px, 3.5vw, 30px);
  cursor: pointer;
}

.menu-item span {
  padding: 6px 10px;
}

.menu-item:hover > span {
  background: #f0f0f0;
  border-radius: 8px;
}

.dropdown-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 180px;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  padding: 0;
  gap: 0;
}

.menu-item:hover .dropdown-box {
  display: flex;
}

.drop-btn {
  padding: 10px 16px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  font-weight: 400;
  transition: 0.15s;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  display: block;
}

.drop-btn:last-child {
  border-bottom: none;
}

.drop-btn:hover {
  background: #f5f5f5;
  color: #111;
}

.logo {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.logo img {
  height: 45px;
  width: auto;
  display: block;
}



/* ===== WRAPPER ===== */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  align-items: center;
}

.test-box {
  border-radius: 16px;
  padding: 40px;
  width: 90%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  margin-top: 20px;
}

/* ===== FOOTER ===== */
.my-footer {
  width: 100%;
  height: 100px;
  background: #393636;
  color: white;
  text-align: center;
  border-top: 3px solid #555;
  margin-top: auto;
}


.menu-item-link {
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  display: block;
  transition: 0.2s;
  font-size: inherit; /* береться від .menu-item */
}

.menu-item-link:hover {
  background: #f0f0f0;
}


/* ── INFO BLOCK ── */
.info-block {
  max-width: 900px;
  margin: 0 auto;
  background: #faf9f9;
  border: 2px solid grey;
  margin-top: 100px;
  padding: 20px;
  margin-bottom: 30px;
}

#info-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
}



.text p {
  flex: 1;
  text-align: justify;
  line-height: 1.6;
}

.politics a{
  color: white;
}
.info-block .text {
  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
   СЛОВНИК НАГОЛОСІВ
   ========================================================= */

.naholosy-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 40px auto;
  padding: 0;
}

/* ---- Заголовок блоку ---- */
.naholosy-heading {
  text-align: center;
  margin-bottom: 28px;
}

.naholosy-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8860b;
}

.naholosy-title {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 28px;
  color: #1e2a22;
}

/* ---- Панель керування (фільтр) ---- */
.naholosy-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4ded0;
}

.naholosy-label {
  font-size: 14px;
  color: #5a5648;
}

.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #b8860b;
  border-bottom: 2px solid #b8860b;
  transform: rotate(45deg);
  pointer-events: none;
}

#emphasis-filter {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid #1e2a22;
  padding: 4px 26px 6px 26px;
  text-align: center;
  text-align-last: center;
  font-size: 15px;
  font-weight: 600;
  color: #1e2a22;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
}

#emphasis-filter:focus {
  outline: none;
  border-bottom-color: #2e7d32;
}

.naholosy-count {
  font-size: 13px;
  color: #8a8471;
  font-style: italic;
}

/* ---- "Книга" з двома колонками ---- */
.naholosy-book {
  position: relative;
  background: #fdfbf5;
  border: 1px solid #e4ded0;
  border-radius: 4px;
  padding: 30px 40px;
  box-shadow: 0 12px 30px rgba(30, 42, 34, 0.08);
}

.naholosy-columns {
  display: flex;
  gap: 0;
  position: relative;
}

.naholosy-column {
  flex: 1;
  min-width: 0;
  padding: 0 24px;
}

/* палітурка / розділювач по центру, як у розгорнутій книзі */
.naholosy-columns::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    #d8cfb8 15%,
    #d8cfb8 85%,
    transparent
  );
}

.naholos-word {
  margin: 0;
  padding: 7px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
    text-align: center;
  color: #262620;
  border-bottom: 1px dotted #eae4d4;
  line-height: 1.4;
}

.naholos-word:last-child {
  border-bottom: none;
}

/* знак наголосу ˈ — як у фонетичній транскрипції словників */
.stress-mark {
  color: #b8860b;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  top: -1px;
  margin-right: 1px;
}

.stressed {
  font-weight: 700;
  color: #2e7d32;
  text-decoration: underline;
  text-decoration-color: rgba(46, 125, 50, 0.4);
  text-underline-offset: 3px;
}


/* ===== АДАПТИВНІСТЬ ===== */

@media (max-width: 1024px) {
  .navbar {
    width: 90%;
    gap: 20px;
    padding: 0 20px;
  }

  .menu-item {
    font-size: 24px;
  }

   #info-title { font-size: 28px; }
  .text { gap: 15px; }

  .info-block {
    margin: 30px auto;
    padding: 20px;
    width: calc(100% - 40px);
  }
 
  }

@media (max-width: 768px) {
  .navbar {
    width: 95%;
    height: 50px;
    gap: 10px;
    padding: 0 10px;
  }

  .menu-item {
    font-size: 18px;
  }

  .logo img {
    height: 32px;
  }

  .drop-btn {
    font-size: 13px;
    padding: 8px 12px;
  }

   .info-block { margin: 25px auto; width: calc(100% - 30px); padding: 18px; }
  .text { flex-direction: column; gap: 12px; }
  .text p { width: 100%; }
  #info-title { font-size: 22px; }

  .my-footer {
    height: 100px;
    font-size: 14px;
  }

  .naholosy-title {
    font-size: 22px;
  }

  .naholosy-book {
    padding: 22px 18px;
  }

  .naholos-word {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .naholosy-controls {
    flex-direction: column;
    gap: 6px;
  }

  .naholosy-columns {
    flex-direction: column;
    gap: 4px;
  }

  .naholosy-columns::after {
    display: none;
  }

  .naholosy-column {
    padding: 0;
  }

  .naholosy-column:first-child {
    border-bottom: 1px dashed #d8cfb8;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .navbar {
    top: 20px;
  }

  .menu-item {
    font-size: 16px;
  }

  .info-block { margin: 20px auto; width: calc(100% - 24px); padding: 15px; }
  #info-title { font-size: 20px; }
  .text p { font-size: 14px; padding: 10px; }

  .logo img {
    height: 28px;
  }

  .drop-btn {
    font-size: 13px;
    padding: 8px 10px;
  }
}

@media (max-width: 360px) {
  .navbar {
    top: 15px;
    width: 95%;
    height: 45px;
    gap: 8px;
    padding: 0 8px;
  }

  .menu-item {
    font-size: 14px;
  }

  .logo img {
    height: 24px;
  }

  .dropdown-box {
    min-width: 140px;
  }

  .drop-btn {
    padding: 8px 10px;
    font-size: 13px;
  }

.info-block { margin: 15px auto; width: calc(100% - 14px); padding: 10px; }
  #info-title { font-size: 15px; }
  .text p { font-size: 13px; line-height: 1.4; }

 

  .my-footer {
    height: 90px;
    font-size: 12px;
    text-align: center;
  }

  .naholosy-title {
    font-size: 19px;
  }

  .naholosy-book {
    padding: 16px 12px;
  }

  .naholos-word {
    font-size: 15px;
  }
}