/*
Theme Name: Latest Casino Promos 2026
Theme URI: https://www.latestcasinopromos.com
Author: Redesign Team
Author URI: https://www.latestcasinopromos.com
Description: Professional casino affiliate theme with custom post types, comparison tables, review cards, schema markup, and conversion-focused design.
Version: 1.0.0
License: GPL v2
Text Domain: lcp
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #f8f9fa;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; color: #1a1a2e; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

/* ========== VARIABLES ========== */
:root {
  --primary: #D4AF37;
  --primary-dark: #b8942a;
  --secondary: #1a1a2e;
  --accent: #e63946;
  --accent-hover: #c1121f;
  --bg: #f8f9fa;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-light: #4a5568;
  --border: #e2e8f0;
  --success: #2e7d32;
  --danger: #c53030;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--secondary);
  color: #a0aec0;
  font-size: 12px;
  padding: 6px 20px;
  text-align: center;
}
.top-bar a { color: var(--primary); }

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-logo { font-size: 1.4rem; font-weight: 800; color: var(--secondary); }
.site-logo span { color: var(--primary); }

/* Main Navigation */
.main-nav ul { display: flex; list-style: none; gap: 0; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 24px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav li:hover > a { color: var(--primary); background: rgba(212,175,55,0.08); }

/* Dropdown */
.main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 8px 8px;
  border-top: 3px solid var(--primary);
  z-index: 1000;
}
.main-nav ul ul a { padding: 12px 18px; font-size: 13px; text-transform: none; border-bottom: 1px solid var(--border); }
.main-nav ul ul a:hover { background: #f8f9fa; color: var(--primary); }
.main-nav li:hover > ul { display: block; }

/* Header Right */
.header-right { display: flex; align-items: center; gap: 15px; }
.header-btn {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s;
}
.header-btn:hover { background: var(--accent-hover); }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(212,175,55,0.15)"/></svg>');
  background-size: 50px 50px;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.15rem; color: #a0aec0; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--secondary) !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--secondary) !important; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary) !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: var(--secondary) !important; }
.btn-claim {
  display: inline-block;
  background: var(--accent);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.btn-claim:hover { background: var(--accent-hover); color: var(--white) !important; }

/* ========== TRUST BAR ========== */
.trust-bar {
  background: var(--white);
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); font-weight: 600; }
.trust-item .icon { color: var(--primary); font-size: 16px; }

/* ========== CONTENT LAYOUT ========== */
.content-area { max-width: 1240px; margin: 0 auto; padding: 40px 20px; }
.page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px;
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ========== CASINO COMPARISON TABLE ========== */
.comparison-table { overflow-x: auto; margin: 25px 0; }
.comparison-table table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.comparison-table thead { background: var(--secondary); color: var(--white); }
.comparison-table th { padding: 14px 16px; text-align: center; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.comparison-table th:first-child { text-align: left; }
.comparison-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.comparison-table td:first-child { text-align: left; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover { background: #f8f9fa; }
.comparison-table .casino-cell { display: flex; align-items: center; gap: 12px; }
.comparison-table .casino-logo { width: 60px; height: 36px; object-fit: contain; border-radius: 4px; }
.comparison-table .rank { font-size: 20px; }
.comparison-table .bonus-text { color: var(--primary); font-weight: 700; }
.comparison-table .license-badge { background: #e8f5e9; color: var(--success); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.comparison-table .rating-text { color: var(--primary); font-weight: 700; }
.comparison-table .claim-btn { padding: 10px 20px; font-size: 13px; }
.comparison-table .review-link { font-size: 12px; color: var(--text-light); }
.comparison-table .review-link:hover { color: var(--primary); }

/* ========== CASINO CARD ========== */
.casino-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.casino-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.casino-card.featured { border: 2px solid var(--primary); background: #fffbeb; }
.casino-card .featured-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--primary);
  color: var(--secondary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.casino-card-header { text-align: center; margin-bottom: 18px; }
.casino-card-logo { max-height: 50px; margin: 0 auto 10px; object-fit: contain; }
.casino-card-title { font-size: 1.15rem; margin-bottom: 5px; }
.casino-card-rating { color: var(--primary); font-weight: 700; font-size: 14px; }
.casino-card-bonus {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  margin-bottom: 18px;
  border: 1px solid #fde68a;
}
.casino-card-bonus .amount { font-size: 18px; font-weight: 800; color: var(--secondary); }
.casino-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
}
.meta-item { background: var(--bg); padding: 8px; border-radius: 6px; text-align: center; }
.meta-label { color: var(--text-light); font-size: 11px; margin-bottom: 2px; }
.meta-value { font-weight: 700; }
.casino-card-pros { margin-bottom: 12px; }
.pro-item { font-size: 12px; color: var(--success); padding: 3px 0; }
.casino-card-footer { display: flex; flex-direction: column; gap: 8px; }
.btn-review {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text) !important;
  border: 1px solid var(--border);
  background: var(--white);
}
.btn-review:hover { background: var(--bg); color: var(--primary) !important; }

/* ========== CARD GRIDS ========== */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

/* ========== CATEGORY BOXES ========== */
.category-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.category-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.category-box .icon { font-size: 32px; margin-bottom: 12px; }
.category-box h4 { font-size: 15px; margin-bottom: 5px; }
.category-box p { font-size: 13px; color: var(--text-light); margin: 0; }

/* ========== COUNTRY BOXES ========== */
.country-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.country-box:hover { border-color: var(--primary); transform: translateY(-2px); }
.country-box .flag { font-size: 28px; }
.country-box .name { font-weight: 700; font-size: 14px; }

/* ========== STICKY CASINO BAR (Review Page) ========== */
.sticky-casino-bar {
  position: sticky;
  top: 70px;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sticky-casino-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.sticky-casino-info { display: flex; align-items: center; gap: 15px; }
.sticky-casino-info img { border-radius: 4px; }

/* ========== REVIEW PAGE SECTIONS ========== */
.review-section { margin-bottom: 35px; }
.verdict-box {
  background: #f0f7ff;
  border-left: 4px solid #3b82f6;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 25px;
  margin-bottom: 25px;
}
.rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.rating-item {
  background: var(--white);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.rating-item .label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.rating-item .value { color: var(--primary); font-size: 22px; font-weight: 800; }

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}
.pros-box { background: #f0fff4; border-radius: var(--radius); padding: 20px; }
.cons-box { background: #fff5f5; border-radius: var(--radius); padding: 20px; }
.pros-box h4 { color: var(--success); margin-bottom: 12px; }
.cons-box h4 { color: var(--danger); margin-bottom: 12px; }
.pros-box li, .cons-box li { padding: 5px 0; font-size: 14px; }

.info-table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 14px; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table td { padding: 12px 15px; }
.info-table td:first-child { color: var(--text-light); width: 40%; }
.info-table td:last-child { font-weight: 600; }

/* ========== PAYMENT TAGS ========== */
.payment-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.payment-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* ========== CTA BOXES ========== */
.cta-box {
  background: linear-gradient(135deg, var(--secondary), #16213e);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: var(--white);
  margin: 40px 0;
}
.cta-box h2 { color: var(--white); margin-bottom: 10px; }
.cta-box p { color: #a0aec0; font-size: 17px; margin-bottom: 25px; }
.cta-box .disclaimer { font-size: 12px; color: #718096; margin-top: 15px; }

/* ========== FAQ ACCORDION ========== */
.faq-section { margin: 35px 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
}
.faq-question::after { content: '+'; font-size: 22px; color: var(--primary); transition: transform 0.2s; }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 0 18px; color: var(--text-light); font-size: 15px; }

/* ========== SIDEBAR WIDGETS ========== */
.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  color: var(--secondary);
}
.sidebar-casino-list { list-style: none; }
.sidebar-casino-list li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.sidebar-casino-list li:last-child { border-bottom: none; }
.sidebar-casino-list .rank { font-weight: 800; color: var(--primary); font-size: 18px; min-width: 25px; }
.sidebar-casino-list .name { font-weight: 600; font-size: 14px; }
.sidebar-casino-list .rating { color: var(--primary); font-size: 12px; margin-left: auto; }

/* Newsletter Widget */
.newsletter-widget input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}
.newsletter-widget button {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

/* ========== MOBILE STICKY CTA ========== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 2px solid var(--accent);
  padding: 10px 15px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.mobile-sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mobile-sticky-info { font-size: 13px; }
.mobile-sticky-info strong { display: block; font-size: 14px; }
.mobile-sticky-info .bonus-text { color: var(--primary); font-weight: 700; }

/* ========== ADVERTISING DISCLOSURE ========== */
.ad-disclosure {
  background: #fffbeb;
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--text-light);
  border-radius: 0 8px 8px 0;
}

/* ========== RESPONSIBLE GAMBLING BAR ========== */
.rg-bar {
  background: var(--secondary);
  color: #a0aec0;
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
}
.rg-bar a { color: var(--primary); font-weight: 600; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--secondary);
  color: #a0aec0;
  padding: 50px 20px 20px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #a0aec0; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  max-width: 1240px;
  margin: 40px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
}
.footer-payment-icons { display: flex; gap: 12px; font-size: 24px; }
.footer-rg-logos { display: flex; gap: 15px; align-items: center; }

/* ========== PAGE HEADER ========== */
.page-header {
  background: linear-gradient(135deg, var(--secondary), #16213e);
  color: var(--white);
  padding: 50px 20px;
  text-align: center;
}
.page-header h1 { color: var(--white); font-size: 2rem; margin-bottom: 10px; }
.page-header p { color: #a0aec0; font-size: 1.05rem; max-width: 700px; margin: 0 auto; }

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  max-width: 1240px;
  margin: 0 auto;
  padding: 15px 20px;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 8px; color: #cbd5e0; }

/* ========== SECTIONS ========== */
.section { padding: 50px 20px; }
.section-light { background: var(--white); }
.section-dark { background: linear-gradient(135deg, var(--secondary), #16213e); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 35px; }
.section-title h2 { margin-bottom: 8px; }
.section-title p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ========== NEWSLETTER ========== */
.newsletter-section {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 40px 0;
  border: 1px solid #fde68a;
}
.newsletter-section h3 { margin-bottom: 8px; }
.newsletter-section p { color: var(--text-light); margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; }
.newsletter-form button { padding: 14px 28px; background: var(--secondary); color: var(--white); border: none; border-radius: 10px; font-weight: 700; cursor: pointer; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; background: none; border: none; font-size: 24px; cursor: pointer; }
  .hero h1 { font-size: 1.7rem; }
  .hero-subtitle { font-size: 1rem; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .trust-bar-inner { justify-content: center; }
  .sticky-casino-bar { display: none !important; }
  .mobile-sticky-cta { display: block !important; }
  .comparison-table table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 10px 8px; }
  .page-header { padding: 35px 20px; }
  .page-header h1 { font-size: 1.5rem; }
  .cta-box { padding: 25px; }
  .newsletter-form { flex-direction: column; }
  .rating-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 50px 15px 40px; }
  .hero h1 { font-size: 1.4rem; }
  .section { padding: 35px 15px; }
  .content-area { padding: 25px 15px; }
  .page-grid { padding: 25px 15px; }
}
