/*
Theme Name: L2
Theme URI: https://example.com
Author: Олександр
Author URI: https://example.com
Description: Тема для анонсов серверов Lineage 2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: l2
*/

body {
  background: url(./img/bg.png) no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 16px;
  width: 100%;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

body.menu-open main {
  z-index: -1;
  position: relative; 
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1112px;
  margin: 0 auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 27px;
}

.container {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== ХЭДЕР ========== */
.header {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 32px 0 20px 0;
  box-shadow: 0 4px 10px rgba(235, 147, 10, 0.15);
  margin-bottom: 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.logo {
  font-size: 46px;
  color: #f6c849;
  font-family: 'Herculanum LT Pro', sans-serif;
  letter-spacing: 2px;
  text-shadow: 0 0 16px #f6c84988;
  margin-bottom: 8px;
}

.logo span {
  color: #FFFFFF;
}

.nav {
  display: flex;
  gap: 27px;
  justify-content: flex-end;
  align-items: center;
  font-size: 16px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 12px;
  transition: 0.2s;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  z-index: 1; 
}


.nav a:hover {
  color: #bdbdbd;
}


.nav a.active {
  padding: 16px 43px 16px 43px;
}
.nav a.active:hover {
  color: #fff;
  padding: 16px 43px 16px 43px;
}
.nav a.active::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -2px;
  right: -2px;
  bottom: -6px;
  background-image: url('./img/link-active.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

.header-language {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center; 
}


.lang-btn {
    background-color: transparent;
    background: none;
    border: none;
    color: #FFFFFF;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}


.lang-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px; 
    height: 20px; 
    background-color: #FFFFFF;
}


.lang-btn:hover {
    color: #bdbdbd;
}


.lang-btn.active {
    color: #F2B337;
}


/* Бургер-кнопка */
.burger-btn {
  display: none;
  align-items: end;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 15px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger-btn .burger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #FFFFFF;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

.burger-btn .burger-line-tho {
  display: block;
  width: 80%;
  height: 1.5px;
  background-color: #FFFFFF;
}

.burger-btn.active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);

}

.section-heading {
  position: relative;
  margin-bottom: 20px;
}

.box-heading {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
}

/* ========== ЗАГОЛОВОК ========== */
.section-heading h1 {
  font-size: 24px;
  padding: 16px 33px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 24px #f6c84933;
  letter-spacing: 0.02em;
}

/* ========== server СЕКЦИЯ ========== */


.filters-toggle {
  display: none;
  gap: 12px;
  background-color: #f6c849;
  color: #000;
  font-weight: 600;
  padding: 14px 30px;
  border: none;
  width: 100%;
  border-radius: 16px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  justify-content: center;
  position: relative;
}

.filters-toggle::before {
  content: "";
  background: url("/img/icons/filter-mobile.svg") no-repeat center / contain;
  width: 18px;
  height: 18px;
}

.server-list {
  margin-bottom: 50px;
}

.server-box {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 36px;
}

.server-box {
  display: flex;
  gap: 20px;
}

.server-list__columns {
  display: flex;
  flex-direction: column;
}

.server-list-title {
  display: flex;
  gap: 20px;
  font-size: 20px;
  margin-bottom: 20px;
}

.server-list-title::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  background: url('./img/icons/Icon.svg') no-repeat center/contain;
}



.server-list__ad {
  background-color: #D9D9D9;
  color: #000000;
  display: flex;
  font-weight: 600;
  justify-content: center;
  border-radius: 12px;
  padding: 27px 27px;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 14px;
}

.server-list__column--filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 294px;
  min-width: 260px;
}

.server-filter__row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.server-filter__button {
  flex: 1 1 45%;
  padding: 15px 0;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #f0f0f0;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
  box-shadow: 0 0 8px #f6c84911;
}
.server-filter__button:hover,
.server-filter__button.active {
  background: #f6c849;
  color: #18120c;
  box-shadow: 0 0 8px #f6c84966;
}

.server-filter__select-group {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.custom-select {
  position: relative;
  flex: 1 1 50%;
  font-size: 14px;
  font-family: inherit;
  user-select: none;
}


.select-trigger {
  width: 100%;
  padding: 14px 35px 16px 10px;
  border-radius: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 8px #f6c84911;
  transition: border 0.2s, box-shadow 0.2s;
  position: relative;
}


.select-trigger::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url('./img/icons/down-arrow.svg') no-repeat center/contain;
  pointer-events: none;
}


.select-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 0 8px #f6c84911;
  z-index: 10;
  overflow: hidden;
}


.select-option {
  padding: 12px 14px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 600;
}

.select-option:hover {
  background: #2c2929;
}


.custom-select.open .select-options {
  display: block;
}


.select-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 2px #f6c84944;
}
.server-filter__submit {
  width: 100%;
  padding: 12px 0;
  margin: 10px 0;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #f6c849 60%, #ffe18a 100%);
  color: #18120c;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 12px #f6c84944;
  transition: background 0.2s, color 0.2s;
}

.server-filter__submit:hover {
  background: #ffe18a;
  color: #18120c;
}

.server-filter__ad {
  background: #D9D9D9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  border-radius: 12px;
  height: 400px;
  padding: 14px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 0 8px #f6c84922;
}

.server-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 50px;
}

.server-list__date-block {
  display: flex;
  justify-content: space-between;
}

.server-list__date-value {
  font-size: 18px;
}


.server-card {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #1a1a1a, #2c1a0e);
  border-radius: 12px;
  padding: 10px 20px 10px 11px;
  color: #f5b84c;
  font-weight: 600;
  font-size: 14px;
  gap: 16px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1); /* обычный */

  min-width: 160px;
  width: fit-content; 
  white-space: nowrap;  
}


.server-card--vip {
  border: 1px solid #F1B237;
  box-shadow: 0 0 12px 2px #f6c849aa;
}

.server-card--top {
  padding: 10px 20px 10px 11px;
  color: #FFFFFF;
  background: linear-gradient(to bottom, #F2B337 0%, #8C4720 82%);
  box-shadow: 0 0 16px 3px #ff5c00aa;
}

.server-card__logo {
  display: flex;
  gap: 9px;
}

.server-card__logo-vip {
  display: flex;
  gap: 6px;
}

.server-card__icon {
  width: 24px;
  height: auto;
}

.filter-vip {
  width: 26px;
}

.filter-crown {
  width: 27px;
}

.server-card__name {
  font-size: 14px;
  display: flex;
  align-items: center;
  line-height: 18px;
  text-transform: uppercase;
  margin-right: auto;
}

.server-card__chronicle {
  font-size: 14px;
}


.server-card__rate {
  display: flex;
  align-items: center;
  gap: 6px;
}

.server-card__rate-icon {
  width: 14px;
  height: 14px;
  filter: brightness(1.5);
}





.calendar {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 12px;
  font-family: sans-serif;
  width: 100%;
  max-width: 294px;
  color: #f5b84c;
}

.calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar__month {
  font-size: 16px;
  font-weight: 600;
}

.calendar__nav-btn {
  background: none;
  border: none;
  color: #f5b84c;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 8px;
  color: #888;
}

.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar__day {
  padding: 10px;
  border-radius: 6px;
  transition: 0.2s;
  cursor: pointer;
  font-size: 14px;
}

.calendar__day:hover {
  background-color: rgba(245, 184, 76, 0.1);
}

.calendar__day--highlight {
  background-color: #f5b84c;
  color: #1a1a1a;
  font-weight: 700;
}

.calendar__day--highlight:hover {
  background-color: #f5b84c;
}

.calendar__day--disabled {
  color: #555;
  cursor: default;
}



/* ========== ТЕКСТОВАЯ СЕКЦИЯ ========== */

.text-section {
  margin-bottom: 88px;
}

.text-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 600;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.3));
  letter-spacing: 0.01em;
  
}

.text-section p {
  font-size: 16px;
  color: #A39CBC;
  margin-bottom: 16px;
  line-height: 1.7;
}



/* ========== ФУТЕР ========== */

.footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 56px 0 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #aaa;
  box-shadow: 0 4px 10px rgba(235, 147, 10, 0.15);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 27px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer .logo {
  font-size: 46px;
  color: #f6c849;
  text-shadow: 0 0 16px #f6c84988;
}

.footer-columns {
  display: flex;
  text-align: center;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 16px;
  padding: 18px 21px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.footer-col h4::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -2px;
  right: -2px;
  bottom: -6px;
  background-image: url('./img/link-active.png');
  background-size: 100% 100%; /* <– ключевой момент */
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

.footer-col a {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 16px;
  color: #A39CBC;
  transition: 0.2s;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.footer-telegram::before {
  content: '';
  width: 24px;
  height: 24px;
  background: url('./img/icons/footer-telegram.svg') no-repeat center/contain;
  margin-right: 8px;
}

.footer-email::before {
  content: '';
  width: 24px;
  height: 24px;
  background: url('./img/icons/footer-mail.svg') no-repeat center/contain;
  margin-right: 8px;
}

.footer-col a:hover {
  color: #f6c849;
  text-shadow: 0 0 12px #f6c84933;
}

.footer-bottom {
  font-size: 14px;
  color: #A39CBC;
  margin-top: 16px;
}

.footer-bottom--mobile {
  display: none;
}

/* ========== СКРОЛЛБАР ========== */
::-webkit-scrollbar {
  width: 8px;
  background: #1e140b;
}
::-webkit-scrollbar-thumb {
  background: #f6c84988;
  border-radius: 8px;
}

@media (max-width: 1024px) {

  .server-box {
    flex-direction: column;
    padding: 24px;
  }

  .server-list__columns {
    flex-direction: column;
  }

  .footer-columns {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .server-list__column--filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 100%;
  min-width: 260px;
}
 .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .calendar {
    max-width: 100%;
  }
  .footer-container {
    flex-direction: column;
  }
}


@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .server-box {
    background: none;
    backdrop-filter: none;
    padding: 24px 0px;
  }
  .logo {
    font-size: 32px;
  }

  .header-language {
    justify-content: flex-end;
    width: 100%;
  }

  .custom-select,
  .server-filter__button {
    flex: 1 1 100%;
  }

  .server-filter__ad {
    height: auto;
  }

  .calendar {
    max-width: 100%;
  }

  .server-card__name {
    font-size: 11px;
  }

 
  
  .server-card__chronicle {
    font-size: 11px;
  }
  .server-card__date {
    font-size: 11px;
  }

  .footer .logo {
    text-align: left;
    font-size: 32px;
  }

  .footer-col h4 {
    font-size: 16px;
  }
}


@media (max-width: 768px) {
  .header {
    padding: 0 16px;
  }
  .burger-btn {
    display: flex;
  }
  .nav {
    position: fixed;
    top: 52px;
    right: 0;
    background: #1E1E1E;
    width: 260px;
    padding: 16px;
    border-radius: 18px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 6px rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
  }
  

  .header-right.open .nav {
    z-index: 10;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav {
    display: flex;
    flex-direction: column;
  }
  .nav a {
    margin: 8px 0;
  }
}



@media (max-width: 468px) {
  .section-heading h1 {
    font-size: 18px;
    padding: 10px 30px;
  }
  .filters-toggle {
    display: flex;
  }

  .server-list-title {
    font-size: 16px;
    
  }
  .footer-top-mobile {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    margin-bottom: 22px;
  }
  .footer-bottom--mobile {
    display: flex;
  }
  .footer-bottom--desktop {
    display: none;
  }

  .text-section p {
    font-size: 12px;
  }

  .text-section {
    margin-bottom: 22px;
  }

  .server-box {
    padding: 24px 0px 0px 0px;
  }

  .server-list {
    margin-bottom: 0px;
  }

  .server-box {
    position: relative;
    width: 100%;
  }

  .server-list__column--filters {
    display: none;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    left: 0;
    padding: 36px 33px;
    width: 360px;
    background: #1E1E1E;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(235, 147, 10, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
  }
  .server-card {
    padding: 9px 7px;
  }

  .server-list__column--filters.active {
    display: flex;
  }
}


@media (max-width: 368px) {
    .server-card__name {
        font-size: 10px;
    }
    .server-card__rate-value {
      font-size: 10px;
    }
  .server-card {
    gap: 10px;
    padding: 9px 7px;
  }
}

 
