/*
Theme Name: IS7 Clone
Theme URI: https://bonu7.ix7game.online
Author: MMGames
Description: IS7 Game inspired download & earn landing page theme with all homepage sections, blog and standard pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: is7clone
Tags: blog, one-column, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============ RESET & BASE ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #3a3a3a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: #046bd2; text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: #044e94; }
h1, h2, h3, h4, h5, h6 { color: #111827; font-weight: 600; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em 1.5em; }

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 4px;
  background: #046bd2;
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding: 15px 30px;
  cursor: pointer;
  transition: background .2s ease;
  text-align: center;
}
.btn:hover, .btn:focus { background: #044e94; color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-green { background: #16a34a; }
.btn-green:hover, .btn-green:focus { background: #15803d; }

/* ============ HEADER ============ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e7e7e7;
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; flex-wrap: wrap; }
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding .logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.site-branding .site-title { font-size: 22px; font-weight: 700; color: #111827; }
.site-branding .site-desc { display: none; font-size: 13px; color: #6b7280; }

.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.main-navigation ul li a { color: #111827; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-navigation ul li a:hover { color: #046bd2; border-bottom-color: #046bd2; }
.main-navigation .current-menu-item > a { color: #046bd2; border-bottom-color: #046bd2; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #111827;
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #046bd2 100%);
  color: #ffffff;
  padding: 64px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #ffffff; font-size: 42px; margin-bottom: 16px; }
.hero p.lead { font-size: 18px; color: #dbeafe; margin-bottom: 28px; max-width: 540px; }
.hero .btn { background: #22c55e; }
.hero .btn:hover { background: #16a34a; }

.app-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(2, 12, 27, .35);
  padding: 28px;
  color: #3a3a3a;
}
.app-card .app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.app-card .app-head .app-logo {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, #046bd2, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 800;
}
.app-card .app-head .app-name { font-size: 20px; font-weight: 700; color: #111827; }
.app-card .app-head .app-ver { font-size: 13px; color: #6b7280; }
.app-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.app-spec { background: #f3f4f6; border-radius: 8px; padding: 10px 14px; }
.app-spec .label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; }
.app-spec .value { font-weight: 700; color: #111827; }
.app-card .btn { width: 100%; }

/* ============ SECTIONS ============ */
.section { padding: 56px 0; }
.section-alt { background: #f9fafb; }
.section-title { font-size: 32px; text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; max-width: 760px; margin: 0 auto 36px; color: #4b5563; }
.section h2 { text-align: center; }

/* Two column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col .text h2, .two-col .text h3 { text-align: left; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.feature .icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: #eef6ff; color: #046bd2;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: #4b5563; margin: 0; }

/* Steps */
.steps { max-width: 720px; margin: 0 auto; counter-reset: step; }
.step {
  position: relative;
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 16px 18px 16px 58px;
  margin-bottom: 12px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 14px; top: 14px;
  width: 32px; height: 32px;
  background: #046bd2; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid #eef0f2;
  color: #374151;
}
.checklist li::before {
  content: "\2713";
  position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px;
  background: #dcfce7; color: #16a34a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.checklist li:last-child { border-bottom: 0; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid #e7e7e7; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: #111827;
  background: #ffffff;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\002B"; font-size: 22px; color: #046bd2; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { background: #eef6ff; }
.faq-item .faq-body { padding: 4px 20px 16px; color: #4b5563; }

/* TOC */
.toc {
  max-width: 800px; margin: 0 auto 40px;
  background: #f9fafb; border: 1px solid #e7e7e7;
  border-radius: 10px; padding: 20px 26px;
}
.toc h3 { font-size: 18px; margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.toc li { margin-bottom: 6px; }
.toc li a { color: #046bd2; }
.toc li a:hover { text-decoration: underline; }

/* CTA */
.cta {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}
.cta h2 { color: #fff; font-size: 34px; }
.cta p { color: #dbeafe; font-size: 17px; max-width: 640px; margin: 0 auto 26px; }

/* Disclaimer */
.disclaimer-box {
  max-width: 860px; margin: 0 auto;
  background: #fffbeb; border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: 8px; padding: 22px 26px;
  color: #78350f;
}

/* ============ PAGE / BLOG ============ */
.page-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin: 0; }
.content-area { padding: 48px 0 64px; }
.content-area .page-content { max-width: 860px; margin: 0 auto; }
.content-area article { max-width: 860px; margin: 0 auto 48px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: #fff; border: 1px solid #e7e7e7;
  border-radius: 12px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.post-card .thumb { background: linear-gradient(135deg, #046bd2, #7c3aed); height: 160px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 40px; }
.post-card .body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 18px; margin-bottom: 8px; }
.post-card h3 a { color: #111827; }
.post-card p { font-size: 14px; color: #4b5563; flex: 1; }
.post-card .more { font-weight: 600; font-size: 14px; color: #046bd2; }

/* Form */
.contact-form label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: #111827; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 18px;
}
.contact-form textarea { min-height: 150px; }

/* ============ FOOTER ============ */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 40px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-widget h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget ul li { margin-bottom: 8px; }
.footer-widget ul a { color: #cbd5e1; }
.footer-widget ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 32px; padding-top: 18px;
  font-size: 13px; text-align: center; color: #64748b;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 32px; }
  .two-col { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-navigation { display: none; width: 100%; }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .main-navigation ul li a { display: block; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  h3 { font-size: 20px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 26px; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 544px) {
  .app-specs { grid-template-columns: 1fr; }
  .app-card { padding: 20px; }
}
