/* styles.css – базов стил за casino-math.online */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f5;

  /* Фон + бекграунд картинка */
  background-color: #050814;
  background-image: url('assets/bg-site.png'); /* или bg-site.png */
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

a {
  color: #ffcc33;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: rgba(5, 8, 20, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.logo span {
  color: #ffcc33;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 0.95rem;
  opacity: 0.85;
}

nav a:hover {
  opacity: 1;
}

/* Hero / Carousel */

.hero {
  position: relative;
  overflow: hidden;
  height: 60vh;
  min-height: 320px;
  background: radial-gradient(circle at top, #192042, #050814 60%);
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.75), rgba(0,0,0,0.15));
}

.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffcc33;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2.2rem;
  max-width: 520px;
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  max-width: 520px;
  opacity: 0.9;
}

.hero-cta-row {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.button {
  background: linear-gradient(135deg, #ffcc33, #ff7b39);
  color: #1b1300;
}

.button:hover {
  filter: brightness(1.05);
}

.button-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
}

.button-secondary:hover {
  background: rgba(255,255,255,0.06);
}

/* Content */

main {
  flex: 1;
}

.section {
  padding: 3rem 1.25rem;
}

.section-alt {
  background: radial-gradient(circle at top, #111733, #050814 60%);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.section-lead {
  max-width: 640px;
  opacity: 0.9;
  margin-bottom: 1.75rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.card {
  background: rgba(8, 12, 30, 0.95);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Contact form */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  opacity: 0.85;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8, 12, 30, 0.9);
  color: #f5f5f5;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Footer */

footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #050814;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  opacity: 0.8;
}

/* Responsive */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  nav ul {
    flex-wrap: wrap;
  }

  .two-col,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content {
    padding-top: 4rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }
}


/* === Language switch === */
.lang-switch {
  display: flex;
  gap: 0.25rem;
  margin-left: 1rem;
}

.lang-btn {
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  line-height: 1;
}

.lang-btn .flag {
  font-size: 1rem;
}
/* Иконки на флаговете в езиковия суичер */
.flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    /* допълнително за всеки случай */
    display: block;
}

.lang-btn.active {
  background: rgba(255,255,255,0.16);
}

/* Smaller size variant used in cookie banner */
.button-small {
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}

/* === Cookie banner overlay === */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
}

.cookie-overlay-hidden {
  display: none !important;
}

.cookie-banner {
  background: #0b1120;
  border-radius: 12px 12px 0 0;
  padding: 1rem 1.25rem;
  max-width: 960px;
  width: 100%;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: #60a5fa;
  text-decoration: underline;
}

/* === FAQ & cookies table helpers === */
.faq-item + .faq-item {
  margin-top: 1.5rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

.cookies-table th {
  background: rgba(15, 23, 42, 0.7);
  font-weight: 600;
}
