/*
Theme Name: Sultan Affiliate Theme
Author: v0
Description: Custom theme for Sultan Casino affiliate site.
Version: 1.0
*/

/* --- Google Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* --- CSS Variables --- */
:root {
  --header-footer-bg: #222723;
  --main-bg: #0e2f2b;
  --primary-btn-bg: #02504b;
  --secondary-btn-bg: #f9c719;
  --text-light: #ffffff;
  --text-dark: #222723;
  --text-secondary: #cccccc;
  --accent-color: #f9c719;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-family: "Roboto", -apple-system, "BlinkMacSystemFont", "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Open Sans",
    "Helvetica Neue", "Arial", sans-serif;
}

/* --- Base Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--main-bg);
  color: var(--text-light);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

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

a {
  color: var(--primary-btn-bg);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}

section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}

/* --- Buttons --- */
.sc-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  font-size: 14px;
}

.sc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.sc-btn--primary {
  background-color: var(--primary-btn-bg);
  color: var(--text-light);
}

.sc-btn--secondary {
  background-color: var(--secondary-btn-bg);
  color: var(--text-dark);
}

/* --- Header --- */
.sc-header {
  background-color: var(--header-footer-bg);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--accent-color);
}

.sc-header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sc-header__logo img {
  max-height: 50px;
}

.sc-header__nav {
  display: flex;
  align-items: center;
}

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

.sc-header__menu-link {
  color: var(--text-light);
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.sc-header__menu-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.sc-header__menu-link:hover::after {
  width: 100%;
}

.sc-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-header__actions .sc-btn {
  padding: 8px 16px;
}

.sc-header__login-btn {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sc-burger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.sc-burger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.sc-hero {
  padding: 60px 0;
  background-size: cover;
  background-position: center;
  position: relative;
}

.sc-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 47, 43, 0.8);
}

.sc-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.sc-hero__title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.sc-hero__subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.sc-hero__bonuses {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sc-bonus-card {
  background: rgba(34, 39, 35, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  flex: 1;
  max-width: 350px;
  text-align: center;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
}

.sc-bonus-card:hover {
  transform: translateY(-5px);
}

.sc-bonus-card__title {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.sc-bonus-card__description {
  margin-bottom: 20px;
  min-height: 50px;
}

.sc-bonus-card__promo {
  display: inline-block;
  background: var(--main-bg);
  border: 1px dashed var(--accent-color);
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- Breadcrumbs --- */
.sc-breadcrumbs {
  padding: 15px 0;
  background-color: rgba(0, 0, 0, 0.2);
  font-size: 14px;
}

.sc-breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 8px;
}

.sc-breadcrumbs a {
  color: var(--text-secondary);
}

.sc-breadcrumbs a:hover {
  color: var(--text-light);
}

.sc-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-secondary);
}

/* --- Winners Table --- */
.sc-winners,
.sc-mirrors,
.sc-app-info {
  text-align: center;
}

.sc-table-wrapper {
  overflow-x: auto;
  max-width: 800px;
  margin: 0 auto;
}

.sc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  background: var(--header-footer-bg);
  border-radius: 8px;
  overflow: hidden;
}

.sc-table th,
.sc-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.sc-table th {
  background-color: var(--primary-btn-bg);
  color: var(--text-light);
  font-weight: 700;
}

.sc-table tr:last-child td {
  border-bottom: none;
}

.sc-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.sc-table td:first-child {
  font-weight: 700;
  color: var(--accent-color);
}

/* --- Pros and Cons --- */
.sc-pros-cons__wrapper {
  display: flex;
  gap: 30px;
}

.sc-pros-cons__column {
  flex: 1;
  background: rgba(34, 39, 35, 0.5);
  padding: 25px;
  border-radius: 12px;
}

.sc-pros-cons__title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid;
}

.sc-pros-cons__title--pros {
  color: #4caf50;
  border-color: #4caf50;
}

.sc-pros-cons__title--cons {
  color: #f44336;
  border-color: #f44336;
}

.sc-pros-cons__list {
  list-style: none;
}

.sc-pros-cons__item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.sc-pros-cons__item::before {
  font-family: "lucide-react"; /* Placeholder, use icon font or SVG */
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: 900;
}

.sc-pros-cons__column--pros .sc-pros-cons__item::before {
  content: "✓";
  color: #4caf50;
}

.sc-pros-cons__column--cons .sc-pros-cons__item::before {
  content: "✗";
  color: #f44336;
}

/* --- Mirrors --- */
.sc-mirrors__status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.sc-mirrors__status--available {
  background-color: #4caf50;
}

.sc-mirrors__status--unavailable {
  background-color: #f44336;
}

.sc-mirrors__update-time {
  margin-top: 20px;
  font-style: italic;
  color: var(--text-secondary);
}

/* --- App Info --- */
.sc-app-info__wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.sc-app-info__details {
  flex: 1;
}

.sc-app-info__frame {
  flex: 1;
  max-width: 300px;
  position: relative;
}

.iphone-frame {
  background: #111;
  border-radius: 40px;
  padding: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.iphone-screen {
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
}

.iphone-screen img {
  width: 100%;
  height: auto;
}

/* --- Popular Slots --- */
.sc-slots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.sc-slot-card {
  background: var(--header-footer-bg);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sc-slot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.sc-slot-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.sc-slot-card__content {
  padding: 20px;
}

.sc-slot-card__title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* --- Content Block --- */
.sc-content-styles {
  background: rgba(34, 39, 35, 0.5);
  padding: 30px;
  border-radius: 12px;
}

.sc-content-styles h1,
.sc-content-styles h2,
.sc-content-styles h3 {
  color: var(--accent-color);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

.sc-content-styles p {
  margin-bottom: 1em;
  line-height: 1.7;
}

.sc-content-styles ul,
.sc-content-styles ol {
  margin-bottom: 1em;
  padding-left: 2em;
}

.sc-content-styles li {
  margin-bottom: 0.5em;
}

.sc-content-styles table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}

.sc-content-styles th,
.sc-content-styles td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
}

.sc-content-styles th {
  background-color: var(--primary-btn-bg);
}

/* --- FAQ --- */
.sc-faq__item {
  background: var(--header-footer-bg);
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.sc-faq__question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.sc-faq__question::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.sc-faq__item[open] .sc-faq__question::after {
  transform: rotate(45deg);
}

.sc-faq__answer {
  padding: 0 20px 20px;
  color: var(--text-secondary);
}

/* --- Author --- */
.sc-author {
  background: var(--header-footer-bg);
  padding: 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.sc-author__photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

.sc-author__info {
  flex: 1;
}

.sc-author__name {
  font-size: 1.8rem;
  color: var(--accent-color);
}

.sc-author__bio {
  margin-bottom: 15px;
}

.sc-author__socials {
  display: flex;
  gap: 15px;
}

.sc-author__socials a {
  font-size: 1.5rem;
  color: var(--text-light);
}

/* --- Footer --- */
.sc-footer {
  background-color: var(--header-footer-bg);
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.sc-footer__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sc-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.sc-footer__logo img {
  max-height: 60px;
}

.sc-footer__nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.sc-footer__nav a {
  color: var(--text-secondary);
}

.sc-footer__logos {
  margin-bottom: 30px;
}

.sc-footer__logos h4 {
  margin-bottom: 15px;
  color: var(--text-light);
}

.sc-footer__logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.sc-footer__logos-grid img {
  max-height: 30px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.sc-footer__logos-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.sc-footer__copyright {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  width: 100%;
}

/* --- Sticky Widget --- */
.sc-sticky-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.sc-sticky-widget .sc-btn {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* --- WordPress Obfuscation Styles --- */
.wp-block-button__link {
  display: none;
}
.elementor-widget-container {
  visibility: hidden;
  height: 0;
}
.post-edit-link {
  display: none !important;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
  .sc-header__menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--header-footer-bg);
    padding: 100px 20px 20px;
    transition: left 0.3s ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  }

  .sc-header__menu.active {
    left: 0;
  }

  .sc-burger {
    display: block;
  }

  .sc-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .sc-burger.active span:nth-child(2) {
    opacity: 0;
  }
  .sc-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .sc-header__nav {
    order: 3;
  }
  .sc-header__actions {
    order: 2;
  }
  .sc-header__logo {
    order: 1;
  }

  .sc-pros-cons__wrapper,
  .sc-app-info__wrapper {
    flex-direction: column;
  }

  .sc-author {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .sc-hero__title {
    font-size: 2.5rem;
  }

  .sc-hero__bonuses,
  .sc-slots__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
  }

  .sc-hero__bonuses::-webkit-scrollbar,
  .sc-slots__grid::-webkit-scrollbar {
    display: none;
  }

  .sc-bonus-card,
  .sc-slot-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }

  .sc-footer__top {
    flex-direction: column;
    gap: 30px;
  }

  .sc-sticky-widget {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: var(--header-footer-bg);
    padding: 10px;
    border-top: 1px solid var(--border-color);
  }
  .sc-sticky-widget .sc-btn {
    width: 90%;
  }
}
