/* BetNav Brasil - Custom Theme Styles */
/* Compatible with Bootstrap 5 */

:root {
  /* Primary Colors */
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: rgba(16, 185, 129, 0.1);

  /* Accent Colors */
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: rgba(245, 158, 11, 0.1);

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-card: #ffffff;
  --bg-dark: #1f2937;
  --bg-darker: #111827;

  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-light: #f9fafb;

  /* Border Colors */
  --border-color: #e5e7eb;
  --border-hover: rgba(16, 185, 129, 0.5);

  /* Other */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark Mode */
.dark {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-card: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --border-color: #374151;
}

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

html {
  overflow-x: hidden;
}

/* Font fallback to prevent CLS */
@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: local('Inter');
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Prevent overflow from common elements */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

pre,
code {
  max-width: 100%;
  overflow-x: auto;
  word-wrap: break-word;
}

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

a:hover {
  color: var(--primary-hover);
}

/* Utility Classes */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted-custom { color: var(--text-secondary) !important; }

.bg-primary-custom { background-color: var(--primary) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-accent-light { background-color: var(--accent-light) !important; }
.bg-secondary-custom { background-color: var(--bg-secondary) !important; }
.bg-card { background-color: var(--bg-card) !important; }
.bg-dark-custom { background-color: var(--bg-dark) !important; }

.gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.gradient-text-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header Styles */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: relative;
}

.navbar-custom .navbar {
  position: relative;
}

.navbar-brand-logo {
  height: 40px;
  width: auto;
}

.nav-link-custom {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link-custom:hover {
  color: var(--primary) !important;
}

.dropdown-menu-custom {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
}

.dropdown-item-custom {
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
}

.dropdown-item-custom:hover {
  background-color: var(--bg-secondary);
}

/* Hamburger Menu Mobile Styling */
.navbar-toggler {
  padding: 0.5rem;
  border: none !important;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler i {
  color: var(--text-primary);
  font-size: 1.5rem;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }

  .navbar-nav {
    gap: 0.25rem;
  }

  .nav-link-custom {
    padding: 0.75rem 1rem !important;
    border-radius: var(--radius-md);
  }

  .nav-link-custom:hover {
    background-color: var(--bg-secondary);
  }

  .dropdown-menu-custom {
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    background: transparent;
  }

  .dropdown-item-custom {
    padding: 0.5rem 1rem;
  }
}

/* Button Styles */
.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-outline-custom {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 600;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
}

/* Card Styles */
.card-custom {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-custom:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.card-casino {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.card-casino:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
}

/* Badge Styles */
.badge-primary-light {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
}

.badge-accent {
  background-color: var(--accent);
  color: white;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-primary) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 50%, rgba(245, 158, 11, 0.05) 100%);
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Search Box */
.search-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  min-height: 56px; /* Prevent CLS */
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-input {
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  flex: 1;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
}

/* Stats Card */
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-bar {
  width: 4px;
  height: 48px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Featured Card */
.featured-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.featured-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, var(--bg-card));
  padding: 2rem 1rem 1rem;
}

/* Trending Section */
.trending-section {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.trending-item:hover {
  border-color: var(--border-hover);
  background-color: var(--primary-light);
}

.trending-icon {
  font-size: 1.25rem;
}

.trending-title {
  font-weight: 500;
  color: var(--text-primary);
}

.trending-trend {
  color: var(--primary);
  font-size: 0.75rem;
}

/* Casino Cards */
.casino-rank {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.casino-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  background: linear-gradient(110deg, var(--bg-secondary) 8%, #f5f5f5 18%, var(--bg-secondary) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--radius-md);
  padding: 0.15rem;
}

.casino-logo img,
img.casino-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: transparent;
  animation: none;
}

/* Skeleton loading animation */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.casino-rating {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background-color: var(--accent-light);
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  font-size: 0.7rem;
}

.casino-rating .star {
  color: var(--accent);
  font-size: 0.65rem;
}

.casino-rating .value {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.7rem;
}

.casino-feature {
  background-color: var(--bg-secondary);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.bonus-card {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
}

.bonus-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
  font-weight: 500;
}

.bonus-label i {
  font-size: 0.6rem;
}

.bonus-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.125rem;
  line-height: 1.2;
}

.bonus-details {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* Compact card title */
.card-casino h3.h5 {
  font-size: 0.85rem !important;
  margin-bottom: 0;
}

/* Compact card badge */
.card-casino .badge {
  font-size: 0.55rem;
  padding: 0.15rem 0.4rem;
}

/* Compact card button */
.card-casino .btn-primary-custom {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.card-casino .btn-link {
  font-size: 0.7rem;
}

/* URL display under button */
.card-casino .casino-url {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-decoration: none;
  word-break: break-all;
  margin-top: 0.25rem;
  opacity: 0.7;
}

.card-casino .casino-url:hover {
  color: var(--primary);
  opacity: 1;
}

/* Compact row gap */
.card-casino .row.g-3 {
  --bs-gutter-y: 0.5rem;
  --bs-gutter-x: 0.75rem;
}

/* Filter tabs styling */
[data-tabs] .btn-outline-secondary {
  border-color: var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
}

[data-tabs] .btn-outline-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

[data-tabs] .btn-outline-secondary.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Category Cards */
.category-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.category-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1rem;
}

.category-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.category-tag {
  background-color: var(--bg-secondary);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Article Cards */
.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.article-card:hover .article-title {
  color: var(--primary);
}

.article-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Guide Cards */
.guide-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.guide-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.guide-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  transition: background-color 0.2s ease;
}

.guide-card:hover .guide-icon {
  background-color: rgba(16, 185, 129, 0.2);
}

.guide-title {
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.guide-card:hover .guide-title {
  color: var(--primary);
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.guide-step i {
  color: var(--primary);
}

/* Trust Section */
.trust-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.trust-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.trust-icon {
  width: 64px;
  height: 64px;
  background-color: var(--primary-light);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2rem;
  margin: 0 auto;
  transition: background-color 0.2s ease;
}

.trust-card:hover .trust-icon {
  background-color: rgba(16, 185, 129, 0.2);
}

.trust-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1rem;
}

.trust-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.trust-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Testimonial Cards */
.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--accent);
}

.testimonial-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-card) 50%, var(--accent-light) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.newsletter-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Footer */
.footer-custom {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.footer-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-contact i {
  width: 16px;
}

/* Responsible Gaming Notice */
.responsible-notice {
  background-color: var(--accent-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  margin-top: 2rem;
}

.responsible-notice p {
  color: var(--accent);
  font-size: 0.875rem;
  margin: 0;
}

/* Legal Pages */
.legal-hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 4rem 0;
  text-align: center;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--primary);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Contact Page */
.contact-form {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.contact-info-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
}

/* Form Styles */
.form-control-custom {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.form-label-custom {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.faq-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 1rem 1rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* Trust Bar */
.trust-bar {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-bar-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
}

.trust-bar-title {
  font-weight: 600;
  color: var(--text-primary);
}

.trust-bar-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* About Page */
.value-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
}

.value-icon {
  width: 56px;
  height: 56px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin: 0 auto;
}

.team-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-card:hover {
  border-color: var(--border-hover);
}

.team-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--bg-secondary);
}

.milestone-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
}

.milestone-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.milestone-event {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Brand Review Page */
.brand-hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 3rem 0;
}

.brand-logo-large {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
}

img.brand-logo-large {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--radius-xl);
}

.rating-large {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-large .stars {
  color: var(--accent);
  font-size: 1.25rem;
}

.rating-large .score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.info-table {
  width: 100%;
}

.info-table tr {
  border-bottom: 1px solid var(--border-color);
}

.info-table td {
  padding: 1rem 0;
}

.info-table td:first-child {
  color: var(--text-secondary);
  width: 40%;
}

.info-table td:last-child {
  font-weight: 500;
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* =====================================================
   RESPONSIVE STYLES - Mobile First Approach
   ===================================================== */

/* Large tablets and small desktops (max-width: 991px) */
@media (max-width: 991px) {
  .hero-section {
    padding: 3rem 0;
  }

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

  /* Brand Review Page - Sidebar below content */
  .brand-hero .col-lg-4 {
    margin-top: 2rem;
  }

  /* Footer 4 columns to 2x2 */
  .footer-custom .col-lg-3 {
    margin-bottom: 1.5rem;
  }
}

/* Tablets (max-width: 767px) */
@media (max-width: 767px) {
  /* Navbar mobile */
  .navbar-custom {
    padding: 0.75rem 0;
  }

  .navbar-custom .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .navbar-brand-logo {
    height: 32px;
  }

  /* Hero Section */
  .hero-section {
    padding: 2rem 0;
    text-align: center;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box .btn {
    width: 100%;
  }

  /* Stats cards */
  .stat-card {
    justify-content: center;
    text-align: center;
  }

  /* Trending Section - Horizontal scroll */
  .trending-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .trending-section::-webkit-scrollbar {
    display: none;
  }

  .trending-section .d-flex {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .trending-item {
    flex-shrink: 0;
    min-width: max-content;
  }

  /* Casino Cards - Mobile Layout */
  .card-casino {
    padding: 0.75rem;
  }

  .card-casino .row {
    text-align: center;
  }

  .card-casino .col-12 {
    margin-bottom: 0.5rem;
  }

  .card-casino .col-12:last-child {
    margin-bottom: 0;
  }

  /* Casino rank and logo centered */
  .card-casino .d-flex.align-items-center.gap-3 {
    justify-content: center;
    gap: 0.5rem !important;
  }

  .casino-rank {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 0.7rem;
  }

  .casino-logo,
  img.casino-logo {
    width: 36px;
    height: 36px;
  }

  /* Casino CTA full width */
  .card-casino .btn-primary-custom {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* Bonus card centered */
  .bonus-card {
    text-align: center;
    padding: 0.5rem;
  }

  .bonus-value {
    font-size: 0.75rem;
  }

  /* Features row */
  .card-casino .casino-feature {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
  }

  .card-casino h3.h5 {
    font-size: 0.8rem !important;
  }

  /* Category Cards */
  .category-card {
    padding: 1.25rem;
  }

  .category-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .category-title {
    font-size: 1.125rem;
  }

  /* Article Cards */
  .article-image {
    height: 160px;
  }

  .article-title {
    font-size: 1.125rem;
  }

  /* Trust Cards */
  .trust-card {
    padding: 1.25rem;
  }

  .trust-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .trust-value {
    font-size: 2rem;
  }

  /* Guide Cards */
  .guide-card {
    padding: 1rem;
  }

  .guide-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  /* Newsletter Section */
  .newsletter-section {
    text-align: center;
  }

  .newsletter-section .d-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .newsletter-section input {
    width: 100%;
  }

  .newsletter-section .btn {
    width: 100%;
  }

  /* Footer Mobile */
  .footer-custom {
    padding: 2rem 0 1rem;
  }

  .footer-custom .row > div {
    margin-bottom: 1.5rem;
  }

  .footer-logo {
    height: 32px;
  }

  .footer-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .footer-links a {
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.25rem 0;
  }

  .footer-links li {
    margin-bottom: 0.5rem;
  }

  /* Responsible Notice */
  .responsible-notice {
    padding: 0.75rem;
  }

  .responsible-notice p {
    font-size: 0.8rem;
  }

  /* Legal Pages */
  .legal-hero {
    padding: 2rem 0;
  }

  .legal-hero h1 {
    font-size: 1.75rem;
  }

  .legal-content {
    padding: 2rem 1rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }

  .legal-content h3 {
    font-size: 1.125rem;
  }

  /* Contact Page */
  .contact-form {
    padding: 1.5rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Brand Review Page */
  .brand-hero {
    padding: 2rem 0;
    text-align: center;
  }

  .brand-hero .d-flex.align-items-center.gap-4 {
    flex-direction: column;
    text-align: center;
  }

  .brand-logo-large,
  img.brand-logo-large {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .rating-large {
    justify-content: center;
  }

  .rating-large .score {
    font-size: 1.5rem;
  }

  /* Info table mobile */
  .info-table td {
    padding: 0.75rem 0;
    font-size: 0.875rem;
  }

  .info-table td:first-child {
    width: 45%;
  }

  /* Trust bar mobile */
  .trust-bar {
    padding: 1rem;
  }

  .trust-bar-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* FAQ mobile */
  .faq-question {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 0 0.875rem 0.875rem;
    font-size: 0.875rem;
  }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
  /* Extra small adjustments */
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  /* Casino cards even more compact */
  .card-casino {
    padding: 0.625rem;
  }

  .casino-rank {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.65rem;
  }

  .casino-logo,
  img.casino-logo {
    width: 32px;
    height: 32px;
  }

  .bonus-value {
    font-size: 0.7rem;
  }

  .card-casino h3.h5 {
    font-size: 0.75rem !important;
  }

  .card-casino .casino-feature {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
  }

  /* Category cards compact */
  .category-card {
    padding: 1rem;
  }

  .category-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .category-title {
    font-size: 1rem;
  }

  /* Trust value smaller */
  .trust-value {
    font-size: 1.75rem;
  }

  /* Brand review compact */
  .brand-logo-large,
  img.brand-logo-large {
    width: 80px;
    height: 80px;
  }

  /* Footer extra compact */
  .footer-description {
    font-size: 0.8rem;
  }
}

/* Touch-friendly tap targets */
@media (pointer: coarse) {
  /* Ensure minimum 44x44px touch targets */
  .btn,
  .nav-link,
  .dropdown-item,
  .footer-links a,
  .trending-item,
  .faq-question {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Links in content areas */
  .footer-links a,
  .legal-content a {
    padding: 0.5rem 0;
  }

  /* Form controls */
  .form-control-custom,
  .form-control {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  /* Checkboxes and radios larger */
  input[type="checkbox"],
  input[type="radio"] {
    min-width: 24px;
    min-height: 24px;
  }
}

/* Landscape phones */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    padding: 1.5rem 0;
  }

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

  .legal-hero {
    padding: 1.5rem 0;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper borders on retina */
  .card-custom,
  .card-casino,
  .category-card,
  .article-card {
    border-width: 0.5px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --border-color: #374151;
  }
}

/* =====================================================
   OVERFLOW PREVENTION - Mobile Safe
   ===================================================== */

/* Container safety - only on mobile */
@media (max-width: 767px) {
  .container,
  .container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Row safety */
  .row {
    margin-left: -15px;
    margin-right: -15px;
    max-width: calc(100% + 30px);
  }
}

/* Card and content overflow */
.card-custom,
.card-casino,
.category-card,
.article-card,
.guide-card,
.trust-card,
.contact-form,
.legal-content {
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Long text handling */
.bonus-value,
.article-title,
.category-title,
.footer-contact span {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Fixed width element protection */
.info-table {
  width: 100%;
  table-layout: fixed;
}

.info-table td {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Button overflow protection */
.btn {
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

/* Hero section text protection */
.hero-title,
.hero-subtitle {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Breadcrumb overflow */
.breadcrumb {
  flex-wrap: wrap;
  overflow: hidden;
}

/* Footer responsive fix */
@media (max-width: 575px) {
  .footer-custom .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }

  .footer-title {
    font-size: 0.95rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-contact {
    font-size: 0.8rem;
  }
}

/* Brand Cards - Marcas Page */
.brand-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
}

.brand-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.brand-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin-bottom: 0.75rem;
}

.brand-logo {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
}

.brand-info {
  text-align: center;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.brand-card:hover .brand-name {
  color: var(--primary);
}

.brand-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.brand-rating i {
  font-size: 0.7rem;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.brand-tag {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
}

.brand-bonus {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Brand Cards Responsive */
@media (max-width: 767px) {
  .brand-card {
    padding: 1rem;
  }

  .brand-logo-wrapper {
    height: 50px;
  }

  .brand-logo {
    max-height: 40px;
  }

  .brand-name {
    font-size: 0.85rem;
  }

  .brand-rating {
    font-size: 0.75rem;
  }

  .brand-tag {
    font-size: 0.6rem;
  }

  .brand-bonus {
    font-size: 0.7rem;
  }
}

/* Performance Optimizations */

/* CSS Containment for independent sections */
.casino-card,
.article-card,
.brand-card,
.featured-card {
  contain: layout style paint;
}

/* Content-visibility for off-screen sections */
section:not(:first-of-type),
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Reduce repaints for animated elements */
.casino-card:hover,
.btn:hover,
.nav-link:hover {
  will-change: transform;
}

/* Optimize font rendering */
body {
  text-rendering: optimizeSpeed;
}

/* Reduce layout shifts */
img {
  content-visibility: auto;
}

/* Simplify box-shadow calculations on scroll */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile Overflow Prevention */
@media (max-width: 991px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .container,
  .row,
  section,
  header,
  footer,
  main {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Prevent fixed width elements from causing overflow */
  img,
  video,
  iframe,
  table,
  pre,
  code {
    max-width: 100%;
    height: auto;
  }
  
  /* Fix potential overflow from flex containers */
  .d-flex,
  .row {
    flex-wrap: wrap;
  }
  
  /* Ensure cards don't overflow */
  .casino-card,
  .article-card,
  .brand-card,
  .featured-card {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Navbar Mobile Fixes */
@media (max-width: 991px) {
  /* Navbar container */
  .navbar-custom {
    padding: 0.75rem 0;
  }

  .navbar-custom .navbar {
    flex-wrap: wrap;
  }

  .navbar-custom .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  /* Toggler button - hamburger menu */
  .navbar-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color) !important;
    cursor: pointer;
    order: 2;
  }

  .navbar-toggler i {
    font-size: 1.25rem;
    color: var(--text-primary);
  }

  .navbar-toggler:hover {
    background: var(--border-color);
  }

  .navbar-toggler:active {
    background: var(--primary);
  }

  .navbar-toggler:active i {
    color: #fff;
  }

  /* Collapse menu - hidden by default */
  .navbar-collapse {
    display: none !important;
    width: 100%;
    order: 3;
    flex-basis: 100%;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
    padding: 1rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }

  /* Show collapse when .show class is added */
  .navbar-collapse.show {
    display: block !important;
  }

  /* Navigation items */
  .navbar-nav {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    width: 100%;
  }

  .nav-link:hover {
    background: var(--bg-secondary);
  }

  /* Dropdown menus on mobile */
  .dropdown-menu {
    position: static !important;
    display: none;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 0.5rem 1rem;
    margin: 0;
    background: transparent;
  }

  .dropdown-menu.show {
    display: block !important;
  }

  .dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
  }

  .dropdown-item:hover {
    background: var(--bg-secondary);
  }

  /* CTA Buttons on mobile */
  .navbar-collapse .d-flex {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .navbar-collapse .d-flex .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Fix hero section on mobile */
@media (max-width: 767px) {
  .hero-section .row {
    flex-direction: column;
  }
  
  .hero-section .col-lg-7,
  .hero-section .col-lg-5 {
    width: 100%;
    max-width: 100%;
  }
  
  .featured-card {
    margin-top: 1.5rem;
  }
}
