/* GameHub Brasil - Custom Styles (Bootstrap 5 Compatible)
   Only brand-specific styles that Bootstrap doesn't provide */

/* ========================================
   1. CSS Variables (Brand Colors)
   ======================================== */
:root {
  --gh-primary: #2a2d36;
  --gh-primary-light: #3a3d46;
  --gh-accent: #e07830;
  --gh-accent-hover: #c86820;
  --gh-background: #f2f1f4;
  --gh-card: #ffffff;
  --gh-muted: #6b6d75;
  --gh-border: #d1cfd8;
  --gh-green: #22c55e;
  --gh-red: #ef4444;
  --gh-secondary: #e8e7ec;

  --gh-radius-lg: 1.5rem;
  --gh-radius-xl: 2rem;

  --font-serif: 'Fraunces', Georgia, serif;
}

/* ========================================
   2. Base Overrides
   ======================================== */
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--gh-background);
  color: #1a1d24;
}

h1, h2, h3, h4, h5, h6,
.font-serif {
  font-family: var(--font-serif);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gh-accent);
}

::selection {
  background: rgba(224, 120, 48, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gh-secondary); }
::-webkit-scrollbar-thumb { background: var(--gh-primary); border-radius: 4px; }

/* ========================================
   3. Bootstrap Overrides
   ======================================== */
.btn-accent {
  background-color: var(--gh-accent);
  border-color: var(--gh-accent);
  color: #fff;
}
.btn-accent:hover {
  background-color: var(--gh-accent-hover);
  border-color: var(--gh-accent-hover);
  color: #fff;
}

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

.btn-outline-accent {
  color: var(--gh-accent);
  border-color: var(--gh-accent);
}
.btn-outline-accent:hover {
  background-color: var(--gh-accent);
  color: #fff;
}

.bg-primary-dark {
  background-color: var(--gh-primary) !important;
}

.bg-accent {
  background-color: var(--gh-accent) !important;
}

.text-accent {
  color: var(--gh-accent) !important;
}

.text-muted-custom {
  color: var(--gh-muted) !important;
}

.border-accent {
  border-color: var(--gh-accent) !important;
}

/* Large Border Radius */
.rounded-xl { border-radius: var(--gh-radius-lg) !important; }
.rounded-2xl { border-radius: var(--gh-radius-xl) !important; }
.rounded-3xl { border-radius: 1.5rem !important; }

/* ========================================
   4. Header & Navigation
   ======================================== */
.topbar {
  background-color: var(--gh-primary);
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}

.topbar .pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gh-green);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.navbar-brand .logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gh-accent) 0%, #ff9a56 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
}

.navbar-brand .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-brand .logo-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-brand .logo-sub {
  font-size: 0.75rem;
  color: var(--gh-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-link-custom {
  font-weight: 500;
  color: var(--gh-primary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--gh-accent);
  background-color: rgba(224, 120, 48, 0.1);
}

/* ========================================
   5. Hero Section (Bento Grid)
   ======================================== */
.hero-section {
  padding: 2rem 0 3rem;
}

.bento-card {
  background: var(--gh-card);
  border-radius: var(--gh-radius-xl);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.bento-card-primary {
  background: linear-gradient(135deg, var(--gh-primary) 0%, #1a1d24 100%);
  color: #fff;
}

.bento-card-accent {
  background: linear-gradient(135deg, var(--gh-accent) 0%, #ff9a56 100%);
  color: #fff;
}

.bento-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
}

/* ========================================
   6. Stats Bar
   ======================================== */
.stats-bar {
  background: var(--gh-card);
  border-radius: var(--gh-radius-lg);
  padding: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gh-accent);
}

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

/* ========================================
   7. Game Cards (Rankings)
   ======================================== */
.game-card {
  background: var(--gh-card);
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.game-card-featured {
  position: relative;
}

.game-card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
  z-index: 1;
}

.game-card-featured .card-content {
  position: relative;
  z-index: 2;
}

.rank-badge {
  width: 40px;
  height: 40px;
  background: var(--gh-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.rank-badge-lg {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

.rating-score {
  font-family: var(--font-serif);
  font-weight: 900;
  color: var(--gh-accent);
}

.rating-score-lg {
  font-size: 3rem;
}

.rating-stars {
  color: #fbbf24;
}

/* ========================================
   8. Category Cards
   ======================================== */
.category-card {
  background: var(--gh-card);
  border-radius: var(--gh-radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-icon {
  width: 64px;
  height: 64px;
  background: var(--gh-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--gh-accent);
}

/* ========================================
   9. Comparison Table
   ======================================== */
.comparison-table {
  background: var(--gh-card);
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
}

.comparison-table thead {
  background: var(--gh-primary);
  color: #fff;
}

.comparison-table th {
  padding: 1rem;
  font-weight: 600;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gh-border);
  vertical-align: middle;
}

.comparison-table tbody tr:hover {
  background: var(--gh-secondary);
}

/* ========================================
   10. Page Hero (Inner Pages)
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--gh-primary) 0%, #1a1d24 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  margin-bottom: 2rem;
}

.page-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.page-hero .breadcrumb-item.active {
  color: #fff;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
}

/* ========================================
   11. Content Cards (Legal Pages)
   ======================================== */
.content-card {
  background: var(--gh-card);
  border-radius: var(--gh-radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.content-card h2 {
  font-family: var(--font-serif);
  color: var(--gh-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.content-card h3 {
  font-size: 1.125rem;
  color: var(--gh-primary);
  margin: 1.5rem 0 0.75rem;
}

.content-card ul {
  padding-left: 1.5rem;
}

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

.highlight-card {
  background: linear-gradient(135deg, var(--gh-primary) 0%, #1a1d24 100%);
  color: #fff;
}

.highlight-card h2 {
  color: #fff;
}

/* ========================================
   12. Contact Form
   ======================================== */
.contact-form .form-control {
  border-radius: 0.75rem;
  border: 2px solid var(--gh-border);
  padding: 0.875rem 1rem;
  transition: all 0.2s;
}

.contact-form .form-control:focus {
  border-color: var(--gh-accent);
  box-shadow: 0 0 0 0.2rem rgba(224, 120, 48, 0.15);
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
}

.contact-info-item i {
  width: 40px;
  height: 40px;
  background: var(--gh-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gh-accent);
}

/* ========================================
   13. Sidebar
   ======================================== */
.sidebar-card {
  background: var(--gh-card);
  border-radius: var(--gh-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

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

.sidebar-links li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gh-border);
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a:hover {
  color: var(--gh-accent);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gh-red);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
}

/* ========================================
   14. Footer
   ======================================== */
.footer {
  background: var(--gh-primary);
  color: rgba(255,255,255,0.9);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footer-warning {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

/* ========================================
   15. Review Page (Brand Details)
   ======================================== */
.review-hero {
  min-height: 70vh;
}

.review-hero-left {
  background: linear-gradient(135deg, var(--gh-primary) 0%, #1a1d24 100%);
  color: #fff;
  padding: 3rem;
}

.review-hero-right {
  background: var(--gh-secondary);
  padding: 3rem;
}

.review-score {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gh-accent);
}

.review-score-label {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
}

.progress-bar-custom {
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-custom .progress-fill {
  height: 100%;
  background: var(--gh-accent);
  border-radius: 4px;
}

.pros-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.pros-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--gh-green);
}

.cons-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.cons-list li::before {
  content: '\f00d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--gh-red);
}

/* Tab System (Pure CSS) */
.review-tabs input[type="radio"] {
  display: none;
}

.review-tabs .tab-label {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--gh-secondary);
  border-radius: 0.5rem 0.5rem 0 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.review-tabs input[type="radio"]:checked + .tab-label {
  background: var(--gh-card);
  color: var(--gh-accent);
}

.tab-content {
  display: none;
  background: var(--gh-card);
  padding: 2rem;
  border-radius: 0 0.5rem 0.5rem 0.5rem;
}

#tab1:checked ~ .tab-content-1,
#tab2:checked ~ .tab-content-2,
#tab3:checked ~ .tab-content-3,
#tab4:checked ~ .tab-content-4 {
  display: block;
}

/* Sticky Sidebar */
.sticky-sidebar {
  position: sticky;
  top: 1rem;
}

.toc-nav {
  background: var(--gh-card);
  border-radius: var(--gh-radius-lg);
  padding: 1.5rem;
}

.toc-nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--gh-muted);
  border-left: 2px solid transparent;
  padding-left: 1rem;
  transition: all 0.2s;
}

.toc-nav a:hover,
.toc-nav a.active {
  color: var(--gh-accent);
  border-left-color: var(--gh-accent);
}

/* ========================================
   16. FAQ Section
   ======================================== */
.faq-item {
  background: var(--gh-card);
  border-radius: var(--gh-radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: var(--gh-secondary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--gh-muted);
}

/* Bootstrap Accordion Override */
.accordion-item {
  background: var(--gh-card);
  border: none;
  border-radius: var(--gh-radius-lg) !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  background: var(--gh-card);
}

.accordion-button:not(.collapsed) {
  background: var(--gh-card);
  color: var(--gh-accent);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--gh-border);
}

/* ========================================
   17. Utility Classes
   ======================================== */
.text-green { color: var(--gh-green) !important; }
.text-red { color: var(--gh-red) !important; }
.bg-green-light { background: rgba(34, 197, 94, 0.1) !important; }
.bg-red-light { background: rgba(239, 68, 68, 0.1) !important; }

.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.75rem !important; }

.fw-semibold { font-weight: 600 !important; }

.opacity-70 { opacity: 0.7 !important; }
.opacity-80 { opacity: 0.8 !important; }

/* ========================================
   18. Animations
   ======================================== */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

.hover-lift {
  transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ========================================
   19. Responsive Adjustments
   ======================================== */
@media (max-width: 991.98px) {
  .review-hero-left,
  .review-hero-right {
    padding: 2rem;
  }

  .review-score {
    font-size: 4rem;
  }

  .bento-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .page-hero {
    padding: 3rem 0 2rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .content-card {
    padding: 1.5rem;
  }

  .review-tabs .tab-label {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}
