/* ============================================
   ONDE VAI PASSAR FUTEBOL HOJE - v3.0
   FotMob-Inspired Clean Modern Design
   ============================================ */

/* Import design system */
@import url('css/design-tokens.css');
@import url('css/animations.css');
@import url('css/components.css');

/* Inter font loaded in HTML head for faster loading */

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface-0);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  gap: var(--space-3);
  min-height: 64px;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header-auth {
    gap: var(--space-3);
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.9;
}

.logo-img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo-img {
    height: 40px;
    max-width: 160px;
  }
}

@media (min-width: 1024px) {
  .logo-img {
    height: 44px;
    max-width: 180px;
  }
}

.logo-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--brand-primary);
  line-height: 1;
  display: none;
}

@media (min-width: 480px) {
  .logo-text {
    display: block;
    font-size: var(--text-lg);
  }
}

/* ===== MAIN NAV ===== */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-right: auto;
  margin-left: var(--space-6);
}

.nav-link {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-primary);
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}

/* ===== USER MENU ===== */
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1-5) var(--space-3);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.user-menu-btn:hover {
  border-color: var(--brand-primary);
  background: var(--surface-3);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  flex-shrink: 0;
}

.user-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}

@media (min-width: 480px) {
  .user-name {
    display: block;
    max-width: 100px;
  }
}

/* User Dropdown Menu */
.user-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 280px;
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4);
  z-index: var(--z-dropdown);
  animation: slideInUp var(--duration-base) var(--ease-out);
}

.user-menu.hidden {
  display: none;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.user-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.user-menu-name {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-size: var(--text-base);
}

.user-menu-email {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-divider {
  height: 1px;
  background: var(--border-default);
  margin: var(--space-3) 0;
}

.user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.user-menu-item:hover {
  background: var(--surface-2);
  color: var(--brand-primary);
}

/* ===== SECONDARY BAR ===== */
.secondary-bar {
  position: sticky;
  top: 64px;
  z-index: calc(var(--z-sticky) - 1);
  background: var(--surface-0);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3) 0;
}

.secondary-bar-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Date Selector */
.date-selector {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
}

.date-selector button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.date-selector button:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--brand-primary);
}

.date-selector button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.date-selector span {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  min-width: 120px;
  text-align: center;
  font-size: var(--text-sm);
}

/* Date Selector Wrapper */
.date-selector-wrapper {
  position: relative;
  display: inline-block;
}

/* Date Display Button */
.date-display {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  min-width: 140px;
  text-align: center;
  font-size: var(--text-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.date-display:hover {
  background: var(--surface-3);
  color: var(--brand-primary);
}

.date-display:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Calendar Popup */
.calendar-popup {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4);
  z-index: var(--z-dropdown);
  animation: slideInUp var(--duration-base) var(--ease-out);
}

.calendar-popup.hidden {
  display: none;
}

/* Calendar Header */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.calendar-month-year {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-size: var(--text-base);
  text-transform: capitalize;
}

.calendar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
  background: var(--surface-3);
  color: var(--brand-primary);
}

/* Calendar Weekdays */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.calendar-weekdays span {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
  padding: var(--space-1);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Calendar Days Grid */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
}

.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calendar-day:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--brand-primary);
}

.calendar-day:disabled {
  color: var(--text-tertiary);
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar-day.other-month {
  color: var(--text-tertiary);
  opacity: 0.5;
}

.calendar-day.today {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  font-weight: var(--weight-bold);
}

.calendar-day.selected {
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-weight: var(--weight-bold);
}

.calendar-day.selected:hover {
  background: var(--brand-primary-light);
  color: var(--text-inverse);
}

.calendar-day.has-matches {
  position: relative;
}

.calendar-day.has-matches::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-success);
  border-radius: var(--radius-full);
}

.calendar-day.selected.has-matches::after {
  background: var(--text-inverse);
}

/* Calendar Footer */
.calendar-footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

/* ===== MAIN CONTENT ===== */
main {
  padding: var(--space-6) 0;
}

.main-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .main-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-6);
  }
}

@media (min-width: 1280px) {
  .main-grid {
    grid-template-columns: 240px 1fr 300px;
  }
}

/* Sidebars */
.side-leagues,
.side-notes {
  display: none;
}

@media (min-width: 1024px) {
  .side-leagues {
    display: block;
  }
}

@media (min-width: 1280px) {
  .side-notes {
    display: block;
  }
}

.sidebar-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.sidebar-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2-5) var(--space-3);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.sidebar-nav-item:hover {
  background: var(--surface-2);
  color: var(--brand-primary);
}

.sidebar-nav-item.active {
  background: var(--brand-primary-muted);
  color: var(--brand-primary);
}

.sidebar-nav-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Sidebar Sections (Right) */
.sidebar-section {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

/* Matches Section */
.matches-section {
  padding: 0;
}

.section-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-title::before {
  content: "";
  width: 4px;
  height: 1em;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
  }
}

.matches-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Highlight Card */
.highlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  margin-bottom: var(--space-4);
}

.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.highlight-card:hover img {
  transform: scale(1.05);
}

.highlight-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
}

.highlight-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.highlight-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: 0;
  line-height: 1.3;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.news-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-3);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.news-item:hover {
  background: var(--surface-2);
}

.news-item-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
}

.news-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-base) var(--ease-out);
}

.news-item:hover .news-item-img {
  transform: scale(1.05);
}

.news-item-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.news-item-date {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.news-item-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.news-item:hover .news-item-title {
  color: var(--brand-primary);
}

/* ===== NEWS CAROUSEL ===== */
.news-carousel-wrapper {
  position: relative;
}

.news-carousel {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-2) 0;
}

.news-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.carousel-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-cyan-400);
  box-shadow: var(--shadow-lg);
}

.carousel-card-img-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.carousel-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-base) var(--ease-out);
}

.carousel-card:hover .carousel-card-img {
  transform: scale(1.05);
}

.carousel-card-content {
  padding: var(--space-3);
}

.carousel-card-category {
  display: inline-block;
  background: rgba(0, 255, 255, 0.1);
  color: var(--color-cyan-400);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.carousel-card-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-card-subtitle {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.carousel-arrow:hover {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
}

.carousel-arrow-left {
  left: -8px;
}

.carousel-arrow-right {
  right: -8px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--space-2) 0 0;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-default);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.carousel-dot.active {
  background: var(--color-cyan-400);
  width: 18px;
  border-radius: 3px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-12);
}

footer .container {
  text-align: center;
}

footer p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

footer a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  margin: 0 var(--space-2);
}

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

.footer-logo {
  height: 32px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--transition-base);
  margin-bottom: var(--space-4);
}

.footer-logo:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.footer-social span {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  flex-basis: 100%;
  text-align: center;
}

.footer-social-link {
  color: var(--text-secondary);
  font-size: 0;
  font-weight: var(--weight-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--brand-primary);
  background: var(--surface-2);
}

.footer-social-link::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.footer-social-link[href*="instagram.com"]::before {
  -webkit-mask-image: url("assets/root/instagram.svg");
  mask-image: url("assets/root/instagram.svg");
}

.footer-social-link[href*="facebook.com"]::before {
  -webkit-mask-image: url("assets/root/facebook.svg");
  mask-image: url("assets/root/facebook.svg");
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.footer-links a {
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-2);
}

.footer-hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  opacity: 0.6;
  margin-top: var(--space-4);
}

.footer-hint kbd {
  padding: var(--space-1) var(--space-2);
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: inherit;
}

/* Footer Newsletter */
.footer-newsletter {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.footer-newsletter-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--brand-primary);
  margin-bottom: var(--space-2);
}

.footer-newsletter p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.newsletter-input {
  padding: var(--space-2-5) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--surface-2);
  color: var(--text-primary);
  width: 220px;
  font-size: var(--text-sm);
}

.newsletter-input::placeholder {
  color: var(--text-tertiary);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--focus-ring);
}

/* ===== CONTENT PAGES ===== */
.page-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.page-nav a {
  color: var(--text-secondary);
}

.page-nav a:hover {
  color: var(--brand-primary);
}

.nav-separator {
  color: var(--text-tertiary);
}

.nav-current {
  color: var(--brand-primary);
}

.content-section {
  padding: var(--space-8) 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.page-title::before {
  content: '';
  width: 4px;
  height: 40px;
  background: var(--brand-primary);
  border-radius: var(--radius-sm);
}

.content-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
}

.content-card:hover {
  box-shadow: var(--shadow-md);
}

.content-card h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.content-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.content-card p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.content-card strong {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.terms-acceptance {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  text-align: center;
  padding: var(--space-4);
  background: rgba(0, 240, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-primary);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.feature-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--brand-primary);
  border-radius: 50%;
}

.contact-email a {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--brand-primary);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-primary);
  font-weight: var(--weight-medium);
}

.update-date {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

/* ===== PREFERENCES PAGE ===== */
.pref-section {
  margin-bottom: var(--space-8);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.pref-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
}

.pref-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.pref-item:hover {
  border-color: var(--border-default);
  background: var(--surface-3);
}

.pref-item.active {
  background: var(--brand-primary-muted);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.pref-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.save-actions {
  position: sticky;
  bottom: var(--space-6);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface-1);
  backdrop-filter: var(--backdrop-blur-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.empty-pref {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-8);
  color: var(--text-tertiary);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
}

/* Checkbox Preferences */
.pref-options-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pref-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.pref-checkbox-item:hover {
  border-color: var(--brand-primary);
  background: var(--surface-3);
}

.pref-checkbox-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 24px;
  background: transparent;
  border: 2px solid var(--text-tertiary);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.pref-checkbox-item input:checked ~ .checkmark {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.pref-checkbox-item input:checked ~ .checkmark::after {
  content: '✓';
  color: var(--text-inverse);
  font-weight: bold;
  font-size: 14px;
}

.pref-text strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.pref-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ===== WIDGET SECTION ===== */
.widget-section {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow: hidden;
}

/* ===== FOCUS VISIBLE (Accessibility) ===== */
*:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .secondary-bar,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .card-match {
    break-inside: avoid;
    border: 1px solid #000;
  }
}

/* ===== AD UNITS (Better Ads Standards compliant) ===== */
/*
  Rules followed:
  - No ads placed above the fold before any content (no prestitial)
  - No large sticky/fixed ad units
  - Ad density kept below 30% on mobile
  - Every unit labelled "Publicidade" via ::before pseudo-element
  - Never placed immediately adjacent to navigation links
*/
.ad-unit {
  width: 100%;
  margin: var(--space-8) 0;
  text-align: center;
  overflow: hidden;
}

.ad-unit::before {
  content: 'Publicidade';
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

.ad-unit-sidebar {
  width: 100%;
  margin: var(--space-6) 0 0;
  text-align: center;
  overflow: hidden;
}

.ad-unit-sidebar::before {
  content: 'Publicidade';
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

/* ===== UTILITY CLASSES ===== */
.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

/* ===== FAQ SECTION ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: var(--space-3);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--brand-primary);
  font-weight: var(--weight-light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.faq-answer strong {
  color: var(--text-primary);
}
