/*
Theme Name: Oz
Template: blankslate
Author: Grigory Frolov
Version: 1.0
*/

body {
    background-image: url("/wp-content/themes/oz/img/bg-white.jpg");
}
body[data-theme="dark"] {
    background-image: url("/wp-content/themes/oz/img/bg.jpg")
}

.header { margin-bottom: 0px; margin-top: 3em; }

h1 { font-size: 20px; }

img { height: auto; }
.is-style-rounded img { border-radius: 10px; }

img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}
img:not([data-src]) {
  opacity: 1;
}

.youtube-placeholder {
  position:relative;
  cursor:pointer;
  width:50%;
}
@media (max-width: 600px) {
  .youtube-placeholder {
    width: 100%;
  }
}

/* */
pre.highlight, pre {
  margin: 0px !important;
  border: 1px solid #ccc;
  background-color: #fff !important;
}

body[data-theme="dark"] pre.highlight, [data-theme="dark"] pre {
  border: 1px solid rgba(128, 128, 128, 0.1);
  background-color: #1a1b21 !important;
  border-radius: 2px;
  padding: 10px;
}

/* */

/* */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.wp-block-column {
  flex: 0 0 50%;
  max-width: 50%;
  box-sizing: border-box;
}

@media (max-width: 450px) {
  .wp-block-column {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/*  */

.wrapper { max-width: 830px; }

.entries-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

@media (max-width: 450px) {
  .entries-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* nav */
@media screen and (max-width: 768px) {
  .menu { z-index: 100; }
}

@media screen and (max-width: 768px) {
    .navbar .menu input[type="checkbox"]:checked~.trigger {
      opacity: 0.95 !important;
    }
    .menu .telegram-icon {
      line-height: initial;
      width: initial;
      left: 50%;
      width: 200px;
      margin-left: -100px;
      padding-top: 6px;
    }
}

/* Sponsorship Notification Bar */
@media (max-width: 768px) {
  .sponsorship-banner { display: none; }
}
@media (min-width: 769px) {
  .sponsorship-banner {
    background-color: #2c4c9a;
    color: #ffffff;
    text-align: center;
    padding: 10px 15px;
    font-family: system-ui, sans-serif;
    font-size: 16px;
    position: relative;
    z-index: 9999;
  }
  .sponsorship-banner a.retro-button { margin-left: 10px; } 

}
/* retro button */
button.retro-button,  p.retro-button a, a.retro-button {
  display: inline-block;
  padding: 6px 12px;
  background-color: #ff5c52;
  color: #000000 !important;
  text-decoration: none;
  border: 2px solid #000;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #000;
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}
button.retro-button:hover, p.retro-button a:hover, a.retro-button:hover {
  background-color: #ff5c52;
  transform: translateY(1px) translateX(1px);
  box-shadow: 1px 1px 0 #000;
  cursor: pointer;
}

/* glide slider */
.glide { margin-bottom: 40px; }
body ul.glide__slides li:before { display:none !important; }
.glide__slide {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
  transition: transform 0.3s ease;
  text-align: left;
}
body[data-theme="dark"] .glide__slide {
  background: #000;
}

.glide__slide img {
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.glide__slide h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.glide__slide p {
  font-size: 0.9rem;
  color: #444;
}

.glide__bullets {
  display: flex;
  justify-content: center;
  bottom: -2em;
}

.glide__bullet {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 6px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.glide__bullet--active {
  background: #333;
}

@media (max-width: 600px) {
  .glide {
    padding-left: 1em;
    padding-right: 1em;
    box-sizing: border-box; /* обязательно */
  }
}

/* ### */

.schema-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin: 1em 0 2em 0;
}

.schema-tool-card {
  border-radius: 10px;
  padding: 1em;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
body[data-theme="dark"] .schema-tool-card {
  background: #000;
}
.schema-tool-card:hover {
  transform: translateY(-4px);
}
.schema-tool-card .icon {
  display: inline-block;
  width: 100%;
}
.schema-tool-card p {
  font-size: 0.9em;
  line-height: 1.5em;
}
.schema-tool-card b, .schema-tool-card a { line-height: 1.3rem; }
.schema-tool-card .icon svg {
  color: #2c4c9a;
  width: 3em;
}
.schema-tool-card .retro-button {
  margin: auto auto 0 auto;
  width: fit-content;
}

/* ### */
.process-section {
  background: #fff;
  padding: 1em 0;

  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

}
body[data-theme="dark"] .process-section {
  background: #2c4c9a;
  color: #fff;
}

.process-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.process-section h3 {
  font-size: 1rem;
  margin: 0;
}

.process-steps {
  list-style: decimal inside;
  padding: 0px;
  margin: 0 0 10px 0;
}
.process-steps li { padding: 0px; }

.audit-request-form .form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

ol.process-steps li::before { display:none !important; }

.audit-request-form input[type="url"],
.audit-request-form input[type="email"] {
  flex: 1 1 200px;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/*
.audit-request-form button {
  flex: 0 0 auto;
  padding: 0.75rem 1.5rem;
  background: #0073e6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.audit-request-form button:hover {
  background: #005bb5; 
} */

.audit-request-form .form-consent {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #444;
}

.audit-request-form .form-consent a {
  color: #0073e6;
  text-decoration: underline;
}

body[data-theme="dark"] .audit-request-form .form-consent, body[data-theme="dark"] .form-consent a {
  color: #ccc;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .audit-request-form .form-fields {
    flex-direction: column;
  }
  .audit-request-form input[type="url"], .audit-request-form input[type="email"] {
    flex: initial;
  }
}

/* Slider transformed */
.schema-tools-grid.create-slider.glide-initialized {
  .glide__slide { background: initial; padding: 0px !important; }
}
@media (max-width: 600px) {
  .schema-tools-grid.create-slider.glide-initialized {
    .glide {
      padding: 0 !important;
      box-sizing: border-box; /* обязательно */
    }
  }
}
