/*
Theme Name: Albraf
Theme URI: https://albraf.com/
Author: Albraf
Author URI: https://albraf.com/
Description: Albraf - A premium WordPress theme for responsible UK online gaming reviews. Automatically creates Home, About Us, Contact, Privacy and Terms pages on activation.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: albraf
Tags: casino, gaming, reviews, responsive, custom-colors
*/

:root {
  --color-bg: #0b0f14;
  --color-surface: #ffffff;
  --color-surface-alt: #f3f4f6;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-accent: #f5b301;
  --color-accent-hover: #d99a00;
  --color-footer: #0a0d12;
  --color-border: #e5e7eb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin: 0 0 0.75em;
  font-weight: 700;
  color: var(--color-text);
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-accent); }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: #000;
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.site-brand {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav .current_page_item a,
.main-nav .current-menu-item a {
  color: var(--color-accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 360px;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.75)),
              url('https://images.pexels.com/photos/1871508/pexels-photo-1871508.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  max-width: 900px;
  margin: 0 auto 20px;
}

.hero p {
  max-width: 820px;
  margin: 0 auto;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
}

/* Content cards */
.section { padding: 40px 0; }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  margin-bottom: 24px;
}

.featured-casino {
  display: grid;
  grid-template-columns: 160px 1fr auto auto auto;
  gap: 24px;
  align-items: center;
}

.casino-logo {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.casino-logo img {
  max-width: 100%;
  max-height: 120px;
  height: auto;
  width: auto;
  display: block;
}

.casino-offer h3 {
  font-size: 18px;
  margin: 0 0 4px;
  font-weight: 600;
}

.casino-rating {
  text-align: center;
}

.stars { color: var(--color-accent); font-size: 14px; letter-spacing: 2px; }

.casino-rating .score {
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px;
}

.casino-meta {
  font-size: 13px;
  color: var(--color-muted);
  max-width: 180px;
  line-height: 1.5;
}

.btn-play {
  background: var(--color-accent);
  color: #111;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-play:hover {
  background: var(--color-accent-hover);
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245,179,1,0.35);
}

/* Two column content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.two-col h2 { font-size: 20px; }
.two-col p { font-size: 15px; color: #374151; }

/* Safe gaming */
.safe-gaming h2 { font-size: 20px; }
.safe-gaming p { font-size: 15px; color: #374151; }

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-nav {
  text-align: center;
  margin-bottom: 24px;
}

.footer-nav ul {
  list-style: none;
  display: inline-flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.footer-nav a:hover { color: var(--color-accent); }

.compliance-bar {
  max-width: 720px;
  margin: 0 auto 32px;
  background: #0f1620;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.compliance-bar .age {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.compliance-bar a {
  display: inline-flex;
  align-items: center;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.compliance-bar a:hover { opacity: 1; }

.compliance-bar img { height: 28px; width: auto; }

.compliance-bar .ssl {
  color: #22c55e;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.6;
}

.notice {
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 16px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.notice h3 {
  color: inherit;
  font-size: 17px;
  margin: 0 0 8px;
}

.notice p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.notice p:last-child { margin-bottom: 0; }

.notice--advisory { background: #2f5233; color: #d7e7d9; }
.notice--advisory h3 { color: #fff; }

.notice--affiliate { background: #f6c6cf; color: #7a1b2b; }
.notice--affiliate h3 { color: #7a1b2b; }

.notice--disclaimer { background: #6d2f2f; color: #f1d6d6; }
.notice--disclaimer h3 { color: #fff; }

.notice--ukgc { background: #1a1d4a; color: #d6d8ee; }
.notice--ukgc h3 { color: #fff; }

.copyright {
  text-align: center;
  margin-top: 32px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* Generic page content */
.page-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin: 40px auto;
  max-width: 860px;
}

.page-content h1 { font-size: 32px; margin-bottom: 16px; }
.page-content h2 { font-size: 22px; margin-top: 32px; }
.page-content p, .page-content li { font-size: 16px; color: #374151; }
.page-content ul { padding-left: 20px; }

/* Contact */
.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245,179,1,0.2);
}

.contact-form button {
  background: var(--color-accent);
  color: #111;
  border: 0;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  justify-self: start;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.form-note { font-size: 14px; color: var(--color-muted); }

/* Responsive */
@media (max-width: 860px) {
  .featured-casino {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .casino-meta { max-width: none; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    padding: 16px 24px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 16px; }
  .menu-toggle { display: inline-flex; }
  .page-content { padding: 24px; }
  .hero { min-height: 280px; padding: 48px 20px; }
}
