/*
Theme Name: Bookmaker reviews
Theme URI:  http://example.com/casino-review
Author:      Your Name
Author URI:  http://example.com
Description: Тема для оглядів казино і рейтингів
Version:     1.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casino-review
Tags: casino, review, responsive, widget
*/

/* ==========================
   1. RESET & BASE СТИЛІ
   ========================== */
   body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #1a1b1f;
    font-family: 'Nunito', sans-serif;
}

a {
    color: #0066cc;
    text-decoration: none;
}


/* ==========================
   2. КОНТЕЙНЕР
   ========================== */
.wrapper {
    /*width: 90%;*/
    max-width: 1200px;
    margin: 0 auto;
    margin-left: 20px;
    box-sizing: border-box;
    padding: 0 15px;
}

/* ==========================
   3. ШАПКА (HEADER)
   ========================== */
.site-header {
    background-color: #2B2E39;
    border-bottom: none;
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 0;
    flex-wrap: wrap;
    position: relative;
}

.site-logo {
    flex: 0 0 auto;
    margin-right: 40px;
    margin-top: 7px;
}

.site-logo h1 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

/* ==========================
   4. НАВІГАЦІЯ (MENU)
   ========================== */

/* 4.1 Desktop menu */
.desktop-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center; /* Центрування меню */
}

ul {
    list-style: none; /* Прибрати маркери повністю */
    padding-left: 0;
  }

.desktop-menu .primary-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
	padding-top: 12px;
}

.desktop-menu .primary-menu li {
    margin: 0 15px;
}

.desktop-menu .primary-menu a {
    font-weight: bold;
    color: #fff;
    transition: color 0.3s;
}

.desktop-menu .primary-menu a:hover {
    color: #00adef;
}


/*================================
          sub menu
===================================*/
/* Сховати підменю за замовчуванням */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%; /* Відстань від батьківського елементу */
    left: 0;
    background-color: #2B2E39;
    padding: 10px 0;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

/* Показувати підменю при наведенні на батьківський пункт */
.primary-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
    opacity: 1;
}

/* Позиціювання підменю під пунктом меню (вирівнювання зліва) */
.primary-menu .menu-item-has-children {
    position: relative; /* Це потрібно для правильного позиціонування підменю */
}

/* Стилі для пунктів підменю */
.primary-menu .sub-menu li {
    padding: 5px 20px;
}

.primary-menu .sub-menu a {
    color: #fff;
    white-space: nowrap;
}

.primary-menu .sub-menu a:hover {
    color: #00adef;
}

/* Мобільне меню */
.mobile-menu {
    display: none;
}

/* Кнопка гамбургер-меню */
.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    color: #fff;
    margin-right: 20px; /* Відступ між кнопкою і логотипом */
}

/* ==========================
   5. ФУТЕР (FOOTER)
   ========================== */
   .site-footer {
    background: #222;
    color: #ccc;
    padding: 40px 20px 20px;
    font-size: 14px;
  }
  
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
  }
  
  .footer-logo {
    flex: 1 1 20%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .footer-logo img {
    max-width: 100px;
    height: auto;
  }
  
  .footer-main {
    flex: 1 1 75%;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-description p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #aaa;
  }
  
  .footer-menu-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .footer-menu-list a {
    color: #ccc;
    text-decoration: none;
  }
  
  .footer-menu-list a:hover {
    text-decoration: underline;
  }
  
  .footer-contact p {
    margin: 4px 0;
  }
  
  .footer-contact a {
    color: #ccc;
    text-decoration: none;
  }
  
  .footer-contact a:hover {
    text-decoration: underline;
  }
  
  .footer-contact i {
    margin-right: 8px;
  }
  
  .site-info {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 15px;
  }

  /*== Scrool Up Button == */
  #scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: #292B33;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  #scrollToTopBtn:hover {
    background-color: #4a7ed8;
    transform: scale(1.1);
  }


/* ==========================
   6. Мобільні стилі (MEDIA QUERIES)
   ========================== */
@media (max-width: 768px) {
    /* 6.1 Header adjustments */
    .header-inner {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .site-logo {
        order: 2;
    }

    .site-logo img {
      max-height: 35px;
      height: auto;
      width: auto;
      margin-top: 5px;
    }

    .site-navigation {
        width: auto;
    }


/* ==========================
     Мобільне меню
   ========================== */

/* Кнопка гамбургер-меню */
  /* Кнопка гамбургер-меню */
  .menu-toggle {
  display: block;
  order: 1;
  margin-right: 15px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  padding-top: 7px;
}

/* Кнопка у стані "хрестик" */
.menu-toggle.open {
  transform: rotate(45deg);
}

/* Закрита кнопка (хрестик) */
.menu-close {
  background: none;
  border: none;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'Nunito', sans-serif;
}

/* Контейнер мобільного меню */
.mobile-menu {
  display: none;
  font-family: 'Nunito', sans-serif;
}

.mobile-menu.open {
  display: block;
  position: absolute;
  top: 0;
  right: 20px;
  background-color: #2B2E39;
  width: calc(100% - 20px);
  height: 100vh;
  padding: 20px;
  padding-top: 80px;
  z-index: 9999;
  border-right: 1px solid #080202;
  overflow-y: auto;
}

/* Стилі списку меню */
.mobile-menu ul {
  padding-left: 0;
  margin: 0;
}

/* Пункти меню */
.mobile-menu li {
  list-style: none;
  margin-left: 10px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  
}

/* Прибрати роздільник в останнього пункту */
.mobile-menu li:last-child {
  border-bottom: none;
}

/* Посилання */
.mobile-menu a {
  display: block;
  padding: 4px 0;          /* менше вертикального відступу */
  padding-left: 10px;      /* відступ зліва */
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-family: 'Nunito', sans-serif;
  width: 100%;
}

/* Hover */
.mobile-menu a:hover {
  color: #ccc;
}

/* Сабменю */
.mobile-menu .sub-menu {
  padding-left: 15px;
  background-color: #2B2E39;
  margin-top: 0;    /* прибирає будь-який зовнішній відступ */
  padding-top: 0;   /* прибирає внутрішній відступ */
  margin-bottom: 0;
}

.mobile-menu .sub-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu .sub-menu li:last-child {
  border-bottom: none;
}

.mobile-menu .sub-menu a {
  font-size: 16px;
  padding: 2px 0;          /* менше вертикального відступу */
  padding-left: 20px;      /* відступ зліва для вкладених */
}

/* Прибрати стилі сабменю на десктопі */
.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .sub-menu {
  display: block !important;
  opacity: 1 !important;
  position: static !important;
  background: none;
  box-shadow: none;
  padding-left: 15px;
}

/* Десктопне меню приховане */
.desktop-menu {
  display: none;
}
    
  /* ------------------------
            Footer 
     ------------------------ */
  .footer-logo {
    flex: 1 1 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
  }
}