/* WordPress Theme: EZTool */
/* style.css */

/*
Theme Name: EZTool
Theme URI: https://eztool.ru
Author: Sasha Ilya Aleksandrov
Description: Темная минималистичная тема для сайта с онлайн-инструментами.
Version: 1.1
*/

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #0e0e0e;
  color: #f0f0f0;
}

a {
  color: #4da6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background-color: #1a1a1a;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.site-title {
  font-size: 1.6em;
  font-weight: bold;
}

.nav-toggle {
  display: none;
  font-size: 1.5em;
  background: none;
  border: none;
  color: #f0f0f0;
  cursor: pointer;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: #4da6ff;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-form input[type="search"] {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: #2a2a2a;
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background-color: #1c1c1c;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  margin-top: 0;
  font-size: 1.2em;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  nav {
    display: none;
    flex-direction: column;
    background: #1a1a1a;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 10px;
  }
  nav.active {
    display: flex;
  }
}
/* Стили для поста на странице single.php */
.single-post .post-content {
    width: 100%;
    max-width: 900px; /* Ограничиваем максимальную ширину */
    margin: 0 auto; /* Центрируем */
    padding: 20px; /* Отступы с боков */
    box-sizing: border-box;
}

/* Для абзацев в контенте */
.single-post .post-content p {
    font-size: 16px; /* Размер шрифта */
    line-height: 1.6; /* Высота строки */
    margin-bottom: 15px; /* Отступы между абзацами */
}

/* Заголовки в контенте */
.single-post .post-content h1, 
.single-post .post-content h2, 
.single-post .post-content h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    line-height: 1.3;
}
