/*
Theme Name: 7K1021 Casino
Theme URI: https://7k1021.casino
Author: OpenAI
Author URI: https://openai.com
Description: Кастомная WordPress-тема для 7k1021.casino в стилистике 7k5290.casino.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: sevenk1021
*/

:root {
  /* === BRAND CORE === */
  --brand-content-background: #0B0001;
  --brand-text: #D1D1D1;
  --brand-text-secondary: #000;
  --brand-simple: linear-gradient(180deg, #7C0818 0%, #830B1A 100%);
  --brand-red: #D1021B;
  --brand-grey: rgba(245,245,245,.5);
  --brand-grey-dark: rgb(31, 26, 27);
  --brand-green: #2DD890;
  --brand-blue: #D1021B;
  --brand-yellow: #F5C66B;
  --brand-gold: #C79E0C;
  --brand-blue-dark: #D1021B;
  --brand-gradient-white: #F9F9F9;
  --brand-gradient-blue: linear-gradient(180deg, #FFF 0%, #E7E7E7 100%);
  --brand-gradient-green: linear-gradient(180deg, #D1021B 0%, #A71023 100%);
  --brand-gradient-bg: none;
  --buttons-color: linear-gradient(180deg, #D1021B 0%, #A71023 100%);
  --buttons-text-inside-color: #fff;
  --buttons-border-radius: 10px;
  --brand-blue-link: #D1021B;
  --link-color: #F5C66B;
  --brand-header-background-mob: rgba(0,0,0,.8);
  --brand-header-background-web: #0B0001;
  --footer-background-color: #110D0E;
  --footer-text-color: #D1D1D1;
  --footer-divider: 1px solid rgba(255,255,255,0.10);
  --main-content-bg: #110D0E;
  --menu-background-color: #060102;
  --menu-active-color: rgba(245,198,107,1);
  --input-background: #000;
  --input-color: #fff;
  --input-border: 1px solid transparent;
  --input-radius: 8px;
  --brand-gradient-popup-bg: linear-gradient(0deg, #1E0409 2.5%, #530B12 97.5%);
  --brand-shadow: 0 2px 8px 0 rgba(0,0,0,0.25);
  --components-border-radius: 12px;

  /* === THEME ALIASES (used in existing CSS) === */
  --bg: #0B0001;
  --bg-soft: #110D0E;
  --panel: rgba(31,26,27,0.92);
  --panel-2: rgba(11,0,1,0.95);
  --text: #D1D1D1;
  --muted: rgba(209,209,209,0.65);
  --line: rgba(255,255,255,.08);
  --primary: #D1021B;
  --primary-2: #A71023;
  --accent: #F5C66B;
  --success: #2DD890;
  --shadow: 0 2px 8px 0 rgba(0,0,0,0.25);
  --radius: 12px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--link-color); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: var(--brand-header-background-web);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.branding a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--brand-simple);
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(209,2,27,.35);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: #fff;
  background: rgba(255,255,255,.06);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.button,
.wp-block-button__link,
input[type="submit"],
button,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--buttons-border-radius);
  padding: 14px 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  color: var(--buttons-text-inside-color);
  background: var(--buttons-color);
  box-shadow: 0 8px 20px rgba(209,2,27,.30);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.button::after,
.wp-block-button__link::after,
input[type="submit"]::after,
button::after,
.cta-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:not(.mobile-toggle):hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(209,2,27,.55), 0 0 24px rgba(209,2,27,.28);
  filter: brightness(1.12);
  color: #fff;
}
.button:hover::after,
.wp-block-button__link:hover::after,
input[type="submit"]:hover::after,
button:not(.mobile-toggle):hover::after {
  opacity: 1;
}
.button:active,
.wp-block-button__link:active,
input[type="submit"]:active,
button:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 8px 20px rgba(209,2,27,.40);
}
.button--ghost {
  background: rgba(255,255,255,.05);
  color: #fff;
  box-shadow: none;
  border: 1px solid var(--line);
}
.button--ghost:hover {
  background: rgba(209,2,27,.14);
  border-color: rgba(209,2,27,.55);
  box-shadow: 0 0 22px rgba(209,2,27,.22), inset 0 0 14px rgba(209,2,27,.08);
  filter: none;
  transform: translateY(-3px) scale(1.03);
  color: #fff;
}
.button--ghost::after { display: none; }

/* === Белая кнопка "Войти" === */
.button--white {
  background: #ffffff;
  color: #0B0001;
  box-shadow: 0 4px 16px rgba(255,255,255,.12);
  border: none;
  font-weight: 700;
}
.button--white::after { display: none; }
.button--white:hover {
  background: #f0f0f0;
  color: #0B0001;
  filter: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 26px rgba(255,255,255,.22);
}
.button--white:active {
  background: #e4e4e4;
  transform: translateY(0) scale(1);
  box-shadow: 0 3px 10px rgba(255,255,255,.10);
}

/* === Кнопка "Играть Сейчас" (усиленная) === */
.button--play {
  background: linear-gradient(180deg, #E8021F 0%, #A71023 100%);
  box-shadow: 0 8px 22px rgba(209,2,27,.40);
  letter-spacing: .02em;
}
.button--play::after {
  background: linear-gradient(135deg, rgba(255,255,255,.22) 0%, transparent 55%);
}
.button--play:hover {
  background: linear-gradient(180deg, #ff1433 0%, #c4122a 100%);
  box-shadow: 0 14px 36px rgba(209,2,27,.60), 0 0 28px rgba(255,30,60,.30);
}
.cta-link {
  background: transparent;
  box-shadow: none;
  padding: 6px 2px;
  border-bottom: 1px solid rgba(209,2,27,.45);
  border-radius: 0;
  color: var(--accent);
  font-weight: 700;
}
.cta-link:hover {
  border-bottom-color: var(--accent);
  color: #fff;
  filter: none;
  transform: translateX(4px);
  box-shadow: none;
}

.hero {
  padding: 48px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: stretch;
}
.hero-card,
.panel,
.post-card,
.widget,
.comment-respond,
.comment-list li,
.wp-block-group.is-style-panel {
  background: linear-gradient(180deg, rgba(89,8,25,.88), rgba(11,0,1,.95));
  border: 1px solid rgba(209,2,27,.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(209,2,27,.35), transparent 70%);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.07);
  font-size: 14px;
  margin-bottom: 16px;
}
.hero-title {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
}
.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 24px;
}
.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-points {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hero-point {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.04);
}
.hero-point strong { display: block; font-size: 20px; color: #fff; }
.hero-side {
  display: grid;
  gap: 18px;
}
.mini-card { padding: 24px; }
.mini-card h3 { margin: 0 0 10px; font-size: 22px; }
.mini-card p { margin: 0 0 16px; color: var(--muted); }
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 14px;
}

.section {
  padding: 26px 0;
}
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}
.section-copy { color: var(--muted); max-width: 760px; }

.cards-3,
.cards-4,
.post-grid {
  display: grid;
  gap: 18px;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature-card,
.provider-card,
.post-card {
  padding: 24px;
}
.feature-card h3,
.provider-card h3,
.post-card h2,
.post-card h3 {
  margin: 0 0 10px;
}
.feature-card p,
.provider-card p,
.post-card p,
.entry-summary,
.entry-content,
.widget p,
.widget li {
  color: var(--muted);
}
.icon-pill {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(209,2,27,.24), rgba(167,16,35,.22));
  margin-bottom: 16px;
}

.providers-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.provider-chip {
  padding: 18px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: #fff;
  font-weight: 700;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  padding: 30px 0 60px;
}
.entry-area,
.sidebar-area { min-width: 0; }
.entry-shell,
.archive-shell {
  background: linear-gradient(180deg, rgba(89,8,25,.88), rgba(11,0,1,.95));
  border: 1px solid rgba(209,2,27,.16);
  border-radius: var(--components-border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.entry-title,
.page-title {
  margin-top: 0;
  line-height: 1.1;
  font-size: clamp(30px, 4.5vw, 52px);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: #fff; margin-top: 28px; }
.entry-content a { color: #f3d6ff; }
.entry-content ul,
.entry-content ol { padding-left: 22px; }
.entry-content blockquote {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 12px 14px;
}

.sidebar-area > * + * { margin-top: 18px; }
.widget,
.search-form,
.comment-respond,
.comment-list li {
  padding: 22px;
}
.widget-title { margin-top: 0; font-size: 20px; }
.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: linear-gradient(180deg, rgba(89,8,25,.88), rgba(11,0,1,.95));
  border: 1px solid rgba(209,2,27,.16);
  border-radius: var(--radius);
}
input[type="search"],
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: var(--input-border);
  background: var(--input-background);
  color: var(--input-color);
  border-radius: var(--input-radius);
  padding: 14px 16px;
}
textarea { min-height: 150px; }

.site-footer {
  margin-top: 24px;
  border-top: var(--footer-divider);
  background: var(--footer-background-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 24px;
  padding: 34px 0;
}
.footer-grid h3,
.footer-grid h4 { margin-top: 0; }
.footer-copy { color: var(--muted); }
.footer-menu,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.site-info {
  border-top: 1px solid var(--line);
  padding: 16px 0 30px;
  color: var(--muted);
  font-size: 14px;
}

/* === PROVIDERS === */
.providers-section { background: var(--bg-soft); }

.providers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.provider-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  color: #fff;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
  cursor: pointer;
}
.provider-logo-card:hover {
  background: rgba(209,2,27,.12);
  border-color: rgba(209,2,27,.4);
  transform: translateY(-2px);
  color: #fff;
}

.prov-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
}
.prov-name {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--muted);
  line-height: 1.3;
}
.provider-logo-card:hover .prov-name { color: #fff; }

/* Provider brand colors */
.prov-pragmatic  { background: linear-gradient(135deg, #c8102e, #8b000f); }
.prov-evolution  { background: linear-gradient(135deg, #e63946, #9d0208); }
.prov-netent     { background: linear-gradient(135deg, #e63946, #6a0572); }
.prov-micro      { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.prov-playtech   { background: linear-gradient(135deg, #003566, #001d3d); }
.prov-nolimit    { background: linear-gradient(135deg, #7b2d8b, #4a0e6b); }
.prov-hacksaw    { background: linear-gradient(135deg, #2d6a4f, #1b4332); }
.prov-push       { background: linear-gradient(135deg, #e76f51, #a4310e); }
.prov-bgaming    { background: linear-gradient(135deg, #0077b6, #023e8a); }
.prov-spinomenal { background: linear-gradient(135deg, #7209b7, #3a0ca3); }
.prov-playson    { background: linear-gradient(135deg, #f77f00, #c44d00); }
.prov-relax      { background: linear-gradient(135deg, #2b9348, #007f5f); }
.prov-redtiger   { background: linear-gradient(135deg, #d62828, #6a040f); }
.prov-btg        { background: linear-gradient(135deg, #5c4033, #3e1f10); }
.prov-elk        { background: linear-gradient(135deg, #1c7c54, #0a3622); }
.prov-wazdan     { background: linear-gradient(135deg, #f4a261, #e76f51); }
.prov-booongo    { background: linear-gradient(135deg, #9b2226, #6a0572); }
.prov-gamzix     { background: linear-gradient(135deg, #0077b6, #48cae4); }
.prov-amatic     { background: linear-gradient(135deg, #606c38, #283618); }
.prov-igrosoft   { background: linear-gradient(135deg, #b5179e, #7209b7); }

.providers-more {
  margin-top: 20px;
  text-align: center;
}
.providers-more span {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  background: rgba(209,2,27,.12);
  border: 1px solid rgba(209,2,27,.3);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

/* === END PROVIDERS === */

.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 1100px) {
  .hero-grid,
  .content-wrap,
  .footer-grid,
  .cards-4,
  .cards-3,
  .post-grid,
  .providers-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .providers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; padding: 12px 0; }
  .mobile-toggle { display: inline-flex; }
  .main-nav { width: 100%; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .hero-grid,
  .content-wrap,
  .cards-4,
  .cards-3,
  .post-grid,
  .providers-strip,
  .footer-grid,
  .hero-points {
    grid-template-columns: 1fr;
  }
  .header-actions .button--ghost { display: none; }
  .hero-card,
  .mini-card,
  .entry-shell,
  .archive-shell { padding: 22px; }
  .section-header { align-items: start; flex-direction: column; }
  .providers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .prov-icon { width: 44px; height: 44px; font-size: 10px; }
  .prov-name { font-size: 11px; }
}
