﻿/*
Theme Name: Zino
Theme URI: https://maneshtimilsina.com/themes/zino/
Author: Manesh Timilsina
Author URI: https://maneshtimilsina.com/
Description: Zino is a minimal and lightweight Full Site Editing theme. This speed optimized theme utilizes the WordPress blocks editor to create unique and eye-catching layouts. Zino is perfect for blogs, small businesses, startups, law firms and other creative agencies who prefer simple and speed optimized websites.
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zino
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, blog, e-commerce, wide-blocks
*/

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wp-block-site-title a,
.wp-block-query-pagination-numbers a,
.wp-block-post-excerpt a {
  text-decoration: inherit;
}

.wp-block-navigation ul {
  padding: inherit;
}

.wp-block-navigation ul,
.wp-block-navigation ul li,
.wp-block-navigation ul li a {
  color: inherit;
}

.wp-block-navigation ul.wp-block-navigation-submenu {
  padding: 0;
}

.wp-block-navigation__responsive-container.is-menu-open {
  padding-inline: var(--wp--preset--spacing--50);
  padding-block-start: var(--wp--preset--spacing--50);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
  align-items: flex-start;
  width: 100%;
  gap: 30px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
  display: flex;
  position: absolute;
  top: 10px;
  right: 0;
  width: auto;
  height: auto;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
  opacity: 0;
  visibility: hidden;
  position: absolute;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation-submenu__toggle:where([aria-expanded="true"]) + .wp-block-navigation__submenu-container {
  opacity: 1;
  visibility: visible;
  position: static;
  padding-top: 0;
}

.wp-block-comment-author-name a,
.wp-block-comment-date a {
  text-decoration: inherit;
  color: inherit;
}

.page .wp-block-template-part,
.single .wp-block-template-part,
.archive .wp-block-template-part {
  margin-top: 0;
}

footer.wp-block-template-part {
  margin-top: 0;
}

.wp-block-query ul li.wp-block-post + li.wp-block-post {
  margin-top: 6rem;
}

.my-button {
  background-color: rgba(0, 115, 230, 0.8); /* Полупрозрачный фон */
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease; /* Анимация переходов */
  border-bottom: 2px solid gold; /* Золотая линия под кнопкой */
}

.my-button:hover {
  background-color: transparent; /* Прозрачный фон при наведении */
  transform: translateY(-5px); /* Поднимаем кнопку вверх */
  border-bottom: 5px solid #ffd700; /* Немного ярче золотая линия при наведении */
}


/* Окно с выбором кнопок */
.custom-button-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 2px solid black;
  padding: 20px;
  z-index: 1000;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Полупрозрачный фон */
.custom-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Общий стиль кнопок */
.custom-button-popup button {
  font-family: 'Minecraft', sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  margin: 10px;
  border: 2px solid black;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* VanillaClassic кнопка */
.custom-button-popup .vanilla-classic {
  background-color: yellow;
  color: black;
}

/* VanillaHard кнопка */
.custom-button-popup .vanilla-hard {
  background-color: #ffcccc;
  color: black;
}

/* Картинка внутри кнопки */
.custom-button-popup button img {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

@font-face {
  font-family: 'Minecraft';
  src: url('../../uploads/fonts/minecraft.ttf') format('truetype');
}


.wp-block-query ul.is-flex-container li.wp-block-post + li.wp-block-post,
.wp-block-query ul.is-layout-grid li.wp-block-post + li.wp-block-post {
  margin-top: 0;
}

nav.wp-block-query-pagination {
  margin-top: 6rem;
}

button,
.wp-block-search__button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  font-family: inherit;
  font-size: inherit;
  color: var(--wp--preset--color--white);
  border: none;
  border-radius: 5px;
  background: var(--wp--preset--color--black);
  line-height: 1;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  text-decoration: none;
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
select,
textarea {
  font-family: inherit;
  font-size: 1em;
  border: 1px solid #949494;
  border-radius: 5px;
  padding: calc(.667em + 2px);
  width: 100%;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
select:focus,
textarea:focus {
  outline: 1px solid #949494;
}

table {
    width: 100%;
    max-width: 100%; /* Таблица не будет шире экрана */
    overflow-x: auto; /* Горизонтальная прокрутка, если таблица не помещается */
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Minecraft', Arial, sans-serif; /* Используем шрифт Minecraft */
    color: white;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #555;
}

th {
    background-color: #444;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #3a3a3a;
}

tr:hover {
    background-color: #555;
}

@media (max-width: 768px) {
    table {
        font-size: 8px; /* Уменьшаем размер шрифта */
    }

    th, td {
        padding: 4px; /* Уменьшаем отступы */
        display: table-cell; /* Делаем все ячейки видимыми */
    }

    /* Скрываем только колонку "Администратор" */
    th:nth-child(5), td:nth-child(5) {
        display: none;
    }

    /* Убедитесь, что дата бана видна */
    th:nth-child(3), td:nth-child(3) {
        display: table-cell !important; /* Добавляем !important, чтобы переопределить любые другие стили */
    }
}




.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
    margin-top: 20px;
}

.pagination .page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: white;
    background-color: transparent;
    border-radius: 4px;
    font-size: 16px;
    min-width: 36px; /* Фиксированная ширина */
    height: 36px; /* Фиксированная высота */
    box-sizing: border-box; /* Учитываем padding и border в ширине */
    margin: 0; /* Убираем внешние отступы */
}

.pagination .page-link.nav-button {
    background-color: #444;
    color: white;
    border: 1px solid #666;
    min-width: 36px; /* Фиксированная ширина */
    height: 36px; /* Фиксированная высота */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 36px; /* Выравнивание текста по вертикали */
    padding: 0; /* Убираем внутренние отступы */
}

.pagination .page-link.active {
    color: yellow;
    font-weight: bold;
    background-color: #333;
}

.pagination .page-link:hover {
    background-color: #555;
    color: yellow;
}

@media (max-width: 600px) {
    .pagination .page-link {
        font-size: 14px;
        padding: 6px 10px;
        min-width: 32px;
        height: 32px;
    }

    .pagination .page-link.nav-button {
        min-width: 32px;
        height: 32px;
        line-height: 32px;
    }
}

/* Стиль для формы поиска */
.search-form {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.search-form input[type="text"] {
    padding: 10px;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 25px;
    width: 250px;
}

.search-form button {
    padding: 10px;
    background-color: gold;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex; /* Включаем flexbox */
    justify-content: center; /* Выравнивание по горизонтали */
    align-items: center; /* Выравнивание по вертикали */
    gap: 8px; /* Расстояние между иконкой и текстом (если есть) */
}

.search-form button:hover {
    background-color: orange;
}

.not-found-container {
    display: flex;
    align-items: center; /* Выравнивание по вертикали */
    gap: 1px; /* Расстояние между текстом и иконкой */
    margin: 20px 0; /* Отступы сверху и снизу */
}

.clear-search {
    color: white; /* Цвет иконки */
    text-decoration: none; /* Убираем подчеркивание */
    font-size: 24px; /* Размер иконки */
    transition: color 0.3s ease; /* Плавное изменение цвета при наведении */
	vertical-align: middle; /* Выравнивание иконки по середине */
}

.clear-search:hover {
    color: gold; /* Цвет иконки при наведении */
	font-size: 24px;
}

/* Адаптивность для маленьких экранов */
@media (max-width: 600px) {
    .search-form input[type="text"] {
        width: 150px;
        font-size: 14px;
    }

    .search-form button {
        padding: 8px;
        font-size: 14px;
    }

    table th:nth-child(3),
    table td:nth-child(3) {
        display: none;
    }
}


