/*
  Theme Name: Crypto Gazeta
  Theme URI: https: //cryptogazeta.online
  Author: VintageCoder
  Author URI: https: //cryptogazeta.online
  Version: 1.0
  Requires PHP: 7.4
*/

:root {
  --bg-color: #fff;
  --text-color: #000;
  --header-bg: #f2f2f2;
  --accent: #000;
  --font-sans: 'Arial', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url(./images/body.jpg);
  color: var(--text-color);
  font-family: var(--font-serif);
  line-height: 1.5;
  font-size: 1rem;
}

header {
  background: var(--accent);
  padding: 1rem;
  border-bottom: 1px solid #ccc;
}

.logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--bg-color);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-color);
  text-decoration: none;
  text-transform: uppercase;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.articles {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.articles_page {
  grid-template-columns: repeat(1, 1fr) !important;
}

.articles_page .the_title {
  margin-top: 20px;
}

.articles_page h3 {
  margin-bottom: 20px;
}

article {
/*  background: var(--bg-color);*/
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

article h2 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

article p {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

article a.read-more {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--bg-color);
  background: var(--accent);
  text-decoration: none;
  padding: 10px 15px;
}

article img {
  max-width: 100%;
  height: auto;
  filter: grayscale(80%);
  border-radius: 5px;
  transition: all .3s ease;
}

article:hover img {
  filter: grayscale(0%);
}

footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #ccc;
  font-size: 0.8rem;
  color: #666;
}

.the_title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
}

.the_title a {
  color: var(--text-color);
  text-decoration: none;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .articles {
    grid-template-columns: 1fr;
  }

  nav ul {
    flex-direction: column;
  }
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #000; /* черная полоса слева */
  background-color: #fafafa;
  font-style: italic;
  color: #333;
  position: relative;
}

blockquote::before {
  content: "“";
  font-family: serif;
  font-size: 3rem;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  color: #ccc;
}

blockquote p {
  margin: 0;
  padding: 0;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
  blockquote {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
  }
  blockquote::before {
    font-size: 2rem;
    top: -0.25rem;
    left: 0.75rem;
  }
}

ul, ol {
  margin: 1.5rem 0 1.5rem 2rem;
  padding: 0;
  font-family: 'Georgia', serif;
  color: #333;
}

ul li, ol li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

ul {
  list-style-type: disc;
  list-style-position: inside;
}

ol {
  list-style-type: decimal-leading-zero;
  list-style-position: inside;
}

/* Стили для маркеров */
ul li::marker {
  color: #000;
  font-size: 1.1em;
}
ol li::marker {
  color: #000;
  font-weight: bold;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  ul, ol {
    margin-left: 1rem;
  }
}

.search-form-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.searchform {
  display: flex;
  background: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.searchform input[type="search"] {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: #333;
  outline: none;
  width: 200px;
  transition: width 0.3s ease;
}

.searchform input[type="search"]:focus {
  width: 300px;
}

.searchform button {
  background: #000;
  color: #fff;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.searchform button:hover {
  background: #333;
}

/* Responsive: adjust search on mobile */
@media (max-width: 768px) {
  .search-form-container {
    justify-content: center;
    margin: 1rem 0;
  }
  .searchform input[type="search"] {
    width: 100%;
  }
  .searchform input[type="search"]:focus {
    width: 100%;
  }
}

.topHeader {
  display: flex;
  align-content: center;
  justify-content: space-between;
}

.userBar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.userBar a {
  color: var(--text-color);
}

@media (max-width: 768px) {
  .topHeader {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

.tgMain {
  display: flex;
  align-content: center;
  justify-content: center;
}

.articles_page_img {
  margin: 0 0 20px 0;
  position: relative;
  z-index: 2;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  background: var(--bg-color);
}

.articles_page {
  max-width: 1024px;
}

.articles_page a {
  color: #dc3232;
}

.homePosts {
  display: flex;
  gap: 25px;
}

.homePostsPic {
  min-width: 300px;
}

.latest-news-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.navigationTop,
.tgMain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.navigationTop {
  color: #858585;
}

.navigationTop a {
  text-decoration: none;
  color: #fff;
}

.singleContainer {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 25px;
  align-content: start;
}

.mainSidebar {
  border: 1px solid #ddd;
  padding: 10px;
  overflow: hidden;
}

.viewPosts a img {
  width: 65px;
  height: 65px;
}

.viewPosts a {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  align-items: start;
}

.viewPosts:last-chield {
  border-bottom: none;
}

@media (max-width: 768px) {
  .topHeader {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .homePosts {
    flex-direction: column;
  }

  .latest-news-list {
    grid-template-columns: repeat(1, 1fr);
  }

  .logo {
    text-align: center;
  }

  .navigationTop  {
    flex-direction: column;
  }

  .singleContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    align-content: start;
  }
}
