/* General Styles */
body {
  font-family: "Roboto", sans-serif;
  background-color: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
}

.wrapper {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  /*overflow-x: hidden;*/
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 0;
}

.block {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

h1,
h2,
h3 {
  color: #1a1a1a;
  margin-top: 0;
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2em;
}

a {
  color: #0255c2;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #54b146;
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none !important;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-login {
  background-color: #0255c2;
}
.btn-signup {
  background-color: #54b146;
}

/* Header */
.header {
  background-color: #ffffff;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo img {
  height: 45px;
  width: auto;
}

.header__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 25px;
}

.header__nav a {
  font-weight: 500;
  font-size: 1.1em;
}

.header__buttons {
  display: flex;
  gap: 10px;
}

.burger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger-menu div {
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s;
}

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 350px;
  border-radius: 12px;
  margin-bottom: 25px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 3em;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.hero p {
  font-size: 1.5em;
  margin-bottom: 25px;
}

/* Content blocks */
.toc ul {
  list-style: none;
  padding: 0;
  columns: 2;
  gap: 20px;
}
.toc li a {
  font-weight: bold;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: center;
}
.advantage__item {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.screenshots__grid,
.tournaments__grid,
.live-games__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.screenshots__grid img,
.live-games__item img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.winners__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.winners__table th,
.winners__table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
}
.winners__table th {
  background-color: #e9efff;
  font-weight: bold;
}
.winners__table tr:nth-child(even) {
  background-color: #f8f8f8;
}

.tournament__card,
.live-games__item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  background: #fff;
}
.tournament__timer {
  font-weight: bold;
  color: #d9534f;
  margin: 10px 0;
}
.tournament__prize {
  font-size: 1.2em;
  font-weight: bold;
  color: #54b146;
}

.demo-game iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
}

.review-content {
  line-height: 1.8;
}
.review-content h2,
.review-content h3,
.review-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}
.review-content p {
  margin-bottom: 1em;
}
.review-content ul,
.review-content ol {
  padding-left: 20px;
  margin-bottom: 1em;
}
.review-content table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
}
.review-content th,
.review-content td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}
.review-content th {
  background-color: #f2f2f2;
}

/* FAQ */
.faq__item {
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
.faq__question {
  width: 100%;
  background: #f9f9f9;
  border: none;
  text-align: left;
  padding: 15px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}
.faq__question::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 1.5em;
  transition: transform 0.3s;
}
.faq__question.active::after {
  transform: rotate(45deg);
}
.faq__answer {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}
.faq__answer.active {
  padding: 15px;
  max-height: 300px;
}

/* Testimonials */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.testimonial__card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.testimonial__header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.testimonial__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
}
.testimonial__rating {
  color: #f0ad4e;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 20px auto 0;
}
.review-form input,
.review-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
#review-success-msg {
  color: #54b146;
  font-weight: bold;
  text-align: center;
  display: none;
}

/* Footer */
.footer {
  background-color: #ffffff;
  padding: 30px 0;
  color: #555;
  border-top: 3px solid #0255c2;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  align-items: start;
}
.footer__logo img {
  height: 40px;
}
.footer h4 {
  margin-top: 0;
  color: #333;
}
.footer ul {
  list-style: none;
  padding: 0;
}
.footer ul li {
  margin-bottom: 8px;
}
.footer__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}
.footer__logos img,
.footer__logos svg {
  height: 25px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer__logos img:hover,
.footer__logos svg:hover {
  opacity: 1;
}
.footer__copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9em;
}

/* Sticky Widget */
.sticky-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(45deg, #0255c2, #54b146);
  color: white;
  padding: 15px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 1001;
}
.sticky-widget p {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
  .header__nav {
    display: none;
  }
  .burger-menu {
    display: flex;
  }
  .header__nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    gap: 15px;
  }
  .header__buttons {
    margin-left: auto;
  }
  .toc ul {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .screenshots__grid,
  .tournaments__grid,
  .live-games__grid {
    grid-template-columns: 1fr;
    /* JS will handle slider functionality */
  }
  .hero h1 {
    font-size: 2.2em;
  }
  .hero p {
    font-size: 1.2em;
  }
  .sticky-widget {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Wordpress-like unused styles */
.post-edit-link {
  display: none;
}
.screen-reader-text {
  position: absolute;
  left: -9999px;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.wp-block-button__link {
  color: #fff;
}
.yoast-seo-breadcrumb {
  font-size: 0.9em;
  color: #888;
}
