/* Google Fonts: Bebas Neue (Logo/Cards) ve Kalam (Hero Slogan) FOUC engellemek için display=block, diğerleri (Body/Marker) için display=swap */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=block');
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&display=block');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500;600&display=swap');
html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

.features, .community, .virtual-market {
  scroll-margin-top: 100px;
}

:root {
  --bg-dark: #0a0a0a;
  --bg-panel: rgba(20, 20, 20, 0.5);
  
  /* Brand Colors matching the App (Orange-Yellow Gradient) */
  --brand-primary: #E8172B; /* Deep Red/Orange */
  --brand-secondary: #F9A900; /* Yellow/Orange */
  --theme-gradient: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  --theme-color: #F9A900;
  --theme-glow: rgba(249, 169, 0, 0.4);
  
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(25, 25, 25, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.6;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea {
  user-select: auto;
  -webkit-user-select: auto;
}

/* Background & Overlay */
.hero-bg-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: var(--bg-dark);
}

.hero-bg-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: bgFadeInOut 24s linear infinite;
}

.hero-bg-slider .bg-flares {
  background-image: url('../assets/stadium_flares.png');
  animation-delay: 0s;
}

.hero-bg-slider .bg-lights {
  background-image: url('../assets/stadium_lights.png');
  animation-delay: 8s;
}

.hero-bg-slider .bg-tifo {
  background-image: url('../assets/stadium_tifo.png');
  animation-delay: 16s;
}

@keyframes bgFadeInOut {
  0% { opacity: 0; transform: scale(1); }
  5% { opacity: 1; transform: scale(1.02); }
  33.33% { opacity: 1; transform: scale(1.10); }
  40% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  background-image: 
    linear-gradient(rgba(10, 10, 10, 0.85) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.85) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  opacity: 0.7;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.logo-container {
  width: 220px; /* Fixed width to prevent menu items from shifting during logo animation */
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.app-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 2.3rem;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  transform: translateY(-2px);
}

.nav-links a:hover {
  color: var(--theme-color);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  width: 135px;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--theme-color);
  color: var(--theme-color);
  padding: 0 5px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 10px var(--theme-glow);
}

.nav-cta:hover,
.nav-cta:active {
  background: linear-gradient(135deg, #fdb913 0%, #ff8c00 100%);
  color: #000;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(253, 185, 19, 0.7);
}

/* --- CSS State Architecture for nav-cta --- */
.nav-cta .cta-auth {
  display: none;
}
.nav-cta .cta-guest {
  display: inline;
}

html.is-authenticated .nav-cta .cta-guest {
  display: none !important;
}
html.is-authenticated .nav-cta .cta-auth {
  display: inline-flex !important;
  align-items: center;
}
/* ------------------------------------------ */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  padding: 120px 5% 50px;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  gap: 50px;
}

.hero-content {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  /* Handwriting / Tribune font with perfect Turkish support */
  font-family: 'Kalam', cursive;
  font-size: clamp(3rem, 4.5vw, 4.2rem);
  line-height: 1.2;
  color: #fff;
  margin-top: 25px;
  margin-bottom: 15px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.9);
  max-width: 800px;
  transform: rotate(-3deg);
  transform-origin: top left;
  text-align: left;
}

.hero h1 .highlight {
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 15px var(--theme-glow));
}

.stadcafe-promo-box {
  margin-bottom: 20px;
  position: relative;
  width: 100%;
  min-width: 320px;
  max-width: 400px;
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 20px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: promo-glow-pulse 2s infinite alternate;
}

@keyframes promo-glow-pulse {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 10px rgba(253, 185, 19, 0.1);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 25px rgba(253, 185, 19, 0.5);
  }
}

.promo-typewriter-container {
  font-size: 15px !important;
  color: #fff;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typewriter-cursor {
  font-weight: bold;
  color: #fdb913;
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: 2px;
}

@keyframes blink-cursor {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.promo-trending-list {
  display: block;
  overflow: hidden;
  height: 68px;
  margin-bottom: 12px;
  position: relative;
  border-radius: 12px;
  opacity: 0.5;
}

.promo-trending-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: slideMatchesUp 16s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes slideMatchesUp {
  0%, 45% { transform: translateY(0); opacity: 1; }
  47.5% { opacity: 0; }
  50%, 95% { transform: translateY(-50%); opacity: 1; }
  97.5% { opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.trending-item.tc-stacked {
  height: 68px;
  box-sizing: border-box;
  padding: 10px 12px;
}

.tc-text-col {
  display: grid;
  grid-template-columns: minmax(0, auto) auto minmax(0, auto);
  align-items: center;
  row-gap: 2px;
  flex-grow: 0;
  margin-right: auto;
  min-width: 0;
}

.tc-text-col .match-title {
  display: contents;
}

.tc-text-col .match-title .team-left {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-text-col .match-title .team-right {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-text-col .tc-bottom {
  grid-column: 2;
  justify-self: center;
  width: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
}

.tc-text-col .inline-score {
  justify-self: center;
}

.tc-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: calc(0.85rem - 2px);
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
}

.inline-score {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  padding: 1px 6px;
  border-radius: 4px;
  margin: 0 8px;
  font-weight: 700;
  font-size: 0.9em;
  vertical-align: middle;
}

.tc-sep {
  color: rgba(255, 255, 255, 0.3);
}

.trending-item {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.trending-item:hover {
  transform: translateY(-2px);
}

.trending-item.gold-glow {
  box-shadow: 0 4px 15px rgba(253, 185, 19, 0.15);
  border-color: rgba(253, 185, 19, 0.3);
}

.trending-item.silver-glow {
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.1);
  border-color: rgba(192, 192, 192, 0.3);
}

.rank-icon {
  font-size: 1.1rem;
  margin-right: 6px;
}

.rank-num {
  font-weight: bold;
  color: rgba(255,255,255,0.7);
  margin-right: 8px;
}

.match-title {
  flex-grow: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  background: rgba(255, 0, 0, 0.15);
  color: #ff4d4d;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 8px;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #4CAF50;
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.promo-more-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 12px 0;
}

.promo-more-text .dot {
  width: 8px;
  height: 8px;
  background: var(--theme-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--theme-color);
  animation: pulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

.btn-promo-glow {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 25px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fdb913 0%, #ff8c00 100%) !important;
  color: #000 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(253, 185, 19, 0.4) !important;
  text-decoration: none;
}

.btn-promo-glow:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(253, 185, 19, 0.7) !important;
  filter: brightness(1.1);
}

@keyframes floodlight-pulse {
  0%, 100% {
    box-shadow: 0 15px 40px rgba(249, 169, 0, 0.15), 
                0 0 15px rgba(255, 255, 255, 0.05);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 15px 45px rgba(249, 169, 0, 0.45), 
                0 0 35px rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
  }
}

.cta-group {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap; /* Prevent breaking into two lines and destroying vertical alignment */
  margin-top: auto; /* Pushes the CTA group to the bottom of the hero-content column */
  min-height: 70px; /* Lock height to prevent vertical shifting across languages */
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 6px 14px;
  box-shadow: 0 15px 40px rgba(249, 169, 0, 0.25), 
              0 0 30px rgba(255, 255, 255, 0.1);
  animation: floodlight-pulse 6s ease-in-out infinite;
}

.hero-mockup {
  flex: 0 0 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 30px;
  perspective: 1000px;
}

.hero-mockup > img {
  max-width: 100%;
  height: auto;
  border-radius: 30px;
  transform: rotateY(-15deg) rotateX(10deg);
  box-shadow: -20px 20px 60px rgba(0,0,0,0.8), 0 0 40px var(--theme-glow);
  transition: transform 0.5s;
}

.hero-mockup > img:hover {
  transform: rotateY(-5deg) rotateX(5deg) scale(1.02);
}

.mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: var(--theme-gradient);
  filter: blur(80px);
  opacity: 0.3;
  z-index: -1;
  border-radius: 50%;
}

.waitlist-badge {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 16px; /* Increased 1px */
  color: rgba(255, 255, 255, 0.85); /* Slightly brighter */
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.3;
  white-space: normal; /* Allow text to wrap inside the badge if needed */
  text-align: left;
}

.waitlist-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--theme-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--theme-color);
  animation: pulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* Pricing Section */
.virtual-market {
  padding: 75px 5% 55px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  position: relative;
  z-index: 10;
}

.virtual-market-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.market-card {
  flex: 1;
  min-width: 320px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 30px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.market-card:hover {
  transform: translateY(-5px);
}

.market-card.premium {
  border-color: rgba(249, 169, 0, 0.4);
  box-shadow: 0 0 50px rgba(249, 169, 0, 0.05);
  background: rgba(249, 169, 0, 0.02);
}

.market-card.premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--theme-gradient);
  box-shadow: 0 0 20px var(--theme-color);
}

.price-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--glass-border);
  min-height: 85px;
}

.price-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  letter-spacing: 1px;
  margin-bottom: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.0;
}

.price-header .price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.0;
}

.premium .price {
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.features-list {
  list-style: none;
  margin-bottom: 25px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  color: #e0e0e0;
  font-size: 0.95rem;
}

.features-list li svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
}

.premium .features-list li svg {
  fill: var(--theme-color);
}

.features-list li.disabled {
  color: #555;
  text-decoration: line-through;
}

.btn-outline {
  display: block;
  text-align: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
}

.premium .btn-outline {
  background: rgba(249, 169, 0, 0.1);
  border-color: var(--theme-color);
  color: var(--theme-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.premium .btn-outline:hover {
  background: var(--theme-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px var(--theme-glow);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 5%;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-dark);
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 169, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(249, 169, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 169, 0, 0); }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: 120px;
  }
  .hero-content {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .hero h1 {
    font-size: 3.5rem;
    text-align: center;
  }
  .hero-animated-text {
    align-items: center;
    height: 115px; /* height to accommodate wrapped text on mobile */
    perspective: 800px;
    transform-style: preserve-3d;
  }
  .animated-line {
    background: rgba(15, 15, 15, 0.45);
    border: none !important;
    border-radius: 50px;
    justify-content: center;
    width: 100%;
    max-width: 450px;
    text-align: center;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: scale(0.97);
    font-size: 1.05rem;
    padding: 12px 20px;
  }
  .animated-line.active {
    border: none !important;
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }
  .animated-line.exit {
    transform: scale(1.03);
  }
  .cta-group {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }
  .hero-mockup {
    margin-top: 40px;
    flex: none;
    width: 100%;
  }
  .hero-mockup > img {
    transform: none;
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .nav-links { display: none; }
  .virtual-market-grid { flex-direction: column; }
  .logo-container { width: 170px; }
  .app-logo { font-size: 1.8rem; }
}

/* Copied Animated Logo */

/* =========================================
   Animated Subconscious Logo (Match-ManIAc)
========================================= */
.logo-wrapper {
  position: relative;
  display: inline-block;
  background-color: transparent; /* Matches nav background */
}

.logo-sliding {
  font-size: inherit; /* Inherit font size from .app-logo */
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  color: #ffffff; 
  margin: 0;
  --logo-letter-spacing: 0.03em;
  --logo-matchia-spacing: 0.08em;
}

.gradient-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary));
  mix-blend-mode: multiply;
  pointer-events: none; 
}



.logo-sliding span {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: baseline;
  margin-right: var(--logo-letter-spacing);
}

.logo-sliding span:last-child {
  margin-right: 0;
}

@keyframes animAtchOpacity {
  /* 0s-4s   : MATCH-MANIAC tam görünür (statik) */
  0%, 10.256%      { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-letter-spacing); animation-timing-function: linear; }
  /* 4s-6s   : opacity 1→0 (2s fade out) */
  15.385%          { max-width: var(--logo-max-width); opacity: 0; margin-right: var(--logo-letter-spacing); animation-timing-function: ease-in-out; }
  /* 6s-8s   : max-width collapse (2s collapse) */
  20.513%, 43.590% { max-width: 0px;   opacity: 0; margin-right: 0px; animation-timing-function: ease-in-out; }
  /* 17s-19s : max-width expand (2s expand) */
  48.718%          { max-width: var(--logo-max-width); opacity: 0; margin-right: var(--logo-letter-spacing); animation-timing-function: linear; }
  /* 19s-21s : opacity 0→1 (2s fade in); 21s-23s: statik */
  53.846%, 58.974% { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-letter-spacing); animation-timing-function: linear; }
  /* 23s-25s : geçiş (MATCHIA'ya doğru margin genişlemesi) */
  64.103%, 87.179% { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-matchia-spacing); animation-timing-function: linear; }
  /* 34s-37s : genişleme bittikten sonra eski haline dönüş */
  94.872%, 100%    { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-letter-spacing); }
}

@keyframes animMManiacPartsOpacity {
  /* 0s-21s  : -MAN ve C tam görünür (MATCH-MANIAC + M-MANIAC + dönüş fazları) */
  0%, 53.846%      { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-letter-spacing); animation-timing-function: linear; }
  /* 21s-23s : opacity 1→0 (2s fade out, hemen/bekleme yok!) */
  58.974%          { max-width: var(--logo-max-width); opacity: 0; margin-right: var(--logo-letter-spacing); animation-timing-function: ease-in-out; }
  /* 23s-25s : max-width collapse (2s collapse) */
  64.103%, 87.179% { max-width: 0px;  opacity: 0; margin-right: 0px; animation-timing-function: ease-in-out; }
  /* 34s-37s : max-width expand (3s aheste genişleme) */
  94.872%          { max-width: var(--logo-max-width); opacity: 0; margin-right: var(--logo-letter-spacing); animation-timing-function: linear; }
  /* 37s-39s : opacity 0→1 (2s fade in) */
  100%             { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-letter-spacing); }
}

@keyframes animSharedOpacity {
  0%, 100% { opacity: 1; } 
}

.logo-sliding .m1 { 
  animation: animSharedOpacity 39s infinite ease-in-out; 
}
.logo-sliding .atch { 
  --logo-max-width: 4ch;
  animation: animAtchOpacity 39s infinite; 
}
.logo-sliding .hyphen { 
  --logo-max-width: 0.8ch;
  animation: animMManiacPartsOpacity 39s infinite; 
}
.logo-sliding .m2 { 
  --logo-max-width: 1.2ch;
  animation: animMManiacPartsOpacity 39s infinite; 
}
.logo-sliding .an { 
  --logo-max-width: 2.1ch;
  --logo-letter-spacing: 0.09em; /* Optik kerning düzeltmesi: N ve I arasındaki boşluğu dengeler */
  animation: animMManiacPartsOpacity 39s infinite; 
}
.logo-sliding .ia { 
  animation: animSharedOpacity 39s infinite ease-in-out; 
}
.logo-sliding .c { 
  --logo-max-width: 1ch;
  animation: animMManiacPartsOpacity 39s infinite; 
}

/* =========================================
   Download Badges (App Store & Google Play)
========================================= */
.download-badges {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Flow layout below the mockup image - no overlap */
.hero-mockup .download-badges {
  margin-top: auto; /* Pushes the badges to the bottom of the hero-mockup column */
  margin-bottom: 0; /* Remove bottom margin to align perfectly with left column */
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  width: 100%;
  min-height: 70px; /* Match cta-group height for perfect centerline alignment */
}
.download-badge-link {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
}

.download-badge-link:hover {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.15));
}

.official-badge {
  width: auto;
  display: block;
  transition: opacity 0.25s ease;
  object-fit: contain;
}

#badge-appstore {
  height: 40px;
}

#badge-gplay {
  /* Default Google Play badge height increased by 10% */
  height: 44px;
}


/* =========================================
   Features Section
========================================= */
.features {
  padding: 45px 5% 55px;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.section-header h2 span {
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.section-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 850px;
  margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 24px 24px 32px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 169, 0, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(249, 169, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(249, 169, 0, 0.4));
}

.feature-card h3, .market-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.4);
}

.feature-card p, .market-card p {
  color: rgba(255, 255, 255, 0.69);
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  margin-left: 25px;
}

/* =========================================
   Community Section
========================================= */
.community {
  padding: 45px 5% 55px;
  background: rgba(15, 15, 15, 0.5);
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.community-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.community-content {
  min-width: 0;
  width: 100%;
}

.community-content .section-header {
  margin-bottom: 12px;
}

.community-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}

.community-features li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 20px 30px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.community-features li::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 15, 15, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: -1;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.community-features li:hover::before {
  border-color: rgba(249, 169, 0, 0.3);
  box-shadow: 0 15px 35px rgba(249, 169, 0, 0.15), 0 0 15px rgba(255, 255, 255, 0.05);
}

.community-features li:hover {
  transform: translateY(-2px);
}

.community-features .nav-cta {
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.bullet-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(249, 169, 0, 0.1);
  border: 1px solid rgba(249, 169, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(249, 169, 0, 0.1);
  transform: translateZ(0);
  will-change: transform;
}

.community-features h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.4);
}

.community-features p {
  color: rgba(255, 255, 255, 0.69);
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  margin-left: 25px;
}

.community-card-mockup {
  background: rgba(25, 25, 25, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 992px) {
  .community-card-mockup {
    margin-top: 110px;
  }
}

.mock-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}

.user-avatar {
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-header div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.mock-header strong {
  color: #fff;
  font-size: 0.95rem;
}

.mock-header span {
  color: #777;
  font-size: 0.75rem;
}

.mock-content p {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.4;
}

.mock-media-placeholder {
  height: 180px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('../assets/stadium_flares.png');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.05);
}

.play-btn {
  width: 45px;
  height: 45px;
  background: var(--theme-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  padding-left: 3px;
  box-shadow: 0 0 15px var(--theme-glow);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-btn:hover {
  transform: scale(1.1);
}

.mock-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  font-size: 0.8rem;
  color: #777;
}

/* =========================================
   Premium Footer & Disclaimer
========================================= */
footer {
  padding: 60px 5% 40px 5% !important;
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 10, 10, 0.95) !important;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 10;
  text-align: left !important;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-info h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 5px;
}

.footer-info h4 span {
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.footer-info p {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.9rem;
}

.footer-disclaimer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
}

.footer-disclaimer p {
  margin: 0;
  color: #888;
}

.footer-disclaimer p strong {
  color: #bbb;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--theme-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 10px;
  color: #555;
  font-size: 0.8rem;
}

/* =========================================
   Responsive Additions
========================================= */
@media (max-width: 992px) {
  .community-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-header h2 {
    font-size: 2.8rem;
  }
  .download-badges {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .download-badges {
    flex-direction: row;
    gap: 10px;
  }
  .official-badge {
    width: auto;
  }
  #badge-appstore {
    height: 36px;
  }
  #badge-gplay {
    height: 36px;
  }

  .section-header h2 {
    font-size: 2.4rem;
  }
  .market-card {
    min-width: unset;
    width: 100%;
  }
}


@media (max-width: 576px) {
  nav {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 15px 5%;
  }
  .logo-container {
    justify-content: center;
  }
}


/* =========================================
   Legal Modal Styles
   ========================================= */
.legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.legal-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal-card {
  position: relative;
  width: 90%;
  max-width: 650px;
  max-height: 80vh;
  background: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 35px;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(249, 169, 0, 0.15);
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-overlay.active .legal-modal-card {
  transform: translateY(0);
}

.legal-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2.2rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.legal-modal-close:hover {
  color: var(--theme-color);
  transform: scale(1.1);
}

.legal-modal-content {
  overflow-y: auto;
  padding-right: 12px;
  text-align: left;
}

/* Custom Scrollbar for Legal Content */
.legal-modal-content::-webkit-scrollbar {
  width: 6px;
}

.legal-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--theme-color);
}

.legal-modal-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 1px;
  color: var(--theme-color);
  margin-bottom: 20px;
  margin-top: 0;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(249, 169, 0, 0.2);
}

.legal-modal-content h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

.legal-modal-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.legal-modal-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.legal-modal-content li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

/* Glassmorphism Auth Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: var(--z-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#add-match-modal-overlay {
  z-index: 1050; /* detay modalının (999) üzerinde açılması için */
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.glass-modal {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  width: 90%;
  max-width: 400px;
  max-height: 96vh;
  overflow-y: auto;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Modal Scrollbar Tasarımı */
.glass-modal::-webkit-scrollbar {
  width: 6px;
}
.glass-modal::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.glass-modal::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

.modal-overlay.active .glass-modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #000000 0%, #2c2c2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #151515 0%, #3a3a3a 100%);
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.modal-close:active {
  transform: translateY(3px);
  box-shadow: 0 0px 0 transparent, inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.search-bar-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.btn-3d-manual {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary, #E8172B) 22%, transparent) 0%, color-mix(in srgb, var(--brand-secondary, #F9A900) 22%, transparent) 100%) !important;
  border: 1px solid color-mix(in srgb, var(--brand-secondary, #F9A900) 35%, transparent);
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-3d-manual:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary, #E8172B) 35%, transparent) 0%, color-mix(in srgb, var(--brand-secondary, #F9A900) 35%, transparent) 100%) !important;
  border-color: color-mix(in srgb, var(--brand-secondary, #F9A900) 60%, transparent);
  color: #ffffff !important;
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-3d-manual:active {
  transform: translateY(3px);
  box-shadow: 0 0px 0 transparent, inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-3d-manual .btn-emoji {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);
}

.btn-3d-manual .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  font-size: 13px;
}

.modal-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.modal-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Auth Provider Buttons */
.auth-providers {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.btn-provider {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-provider:hover {
  background: rgba(255,255,255,0.05);
}

.btn-provider img, .btn-provider svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--spacing-lg) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 var(--spacing-md);
}

/* Main Hero Section */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  min-height: calc(100vh - 80px); /* Subtract header height */
  background: radial-gradient(circle at 50% -20%, rgba(243, 156, 18, 0.1) 0%, rgba(10,10,10,1) 60%);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--spacing-xl);
}

/* =========================================
   Onboarding (Team Selection)
========================================= */
.onboarding-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  min-height: calc(100vh - 80px);
}

.onboarding-container {
  max-width: 800px;
  width: 100%;
}

.onboarding-container h2 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.onboarding-container p {
  margin-bottom: var(--spacing-xl);
  font-size: 1.1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.team-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg) var(--spacing-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

.team-card h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.team-card:hover {
  transform: translateY(-5px);
  background: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Team Specific Hover Effects (White-Labeling Preview) */
.team-card[data-team="GS"]:hover { border-color: #c8102e; box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3); }
.team-card[data-team="FB"]:hover { border-color: #001f5b; box-shadow: 0 5px 15px rgba(0, 31, 91, 0.3); }
.team-card[data-team="BJK"]:hover { border-color: #ffffff; box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2); }
.team-card[data-team="TS"]:hover { border-color: #a40046; box-shadow: 0 5px 15px rgba(164, 0, 70, 0.3); }
.team-card[data-team="BURSA"]:hover { border-color: #007a33; box-shadow: 0 5px 15px rgba(0, 122, 51, 0.3); }

/* =========================================
   Dashboard & Empty State
========================================= */
.dashboard-section {
  flex: 1;
  padding: var(--spacing-xl) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  max-width: 634px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.dashboard-header h2 {
  font-size: 2.5rem;
  margin: 0;
}
.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 634px;
  margin: 0 auto;
  width: 100%;
  transition: filter 0.3s ease;
}

.modal-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.modal-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Auth Provider Buttons */
.auth-providers {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.btn-provider {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-provider:hover {
  background: rgba(255,255,255,0.05);
}

.btn-provider img, .btn-provider svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--spacing-lg) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 var(--spacing-md);
}

/* Main Hero Section */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  min-height: calc(100vh - 80px); /* Subtract header height */
  background: radial-gradient(circle at 50% -20%, rgba(243, 156, 18, 0.1) 0%, rgba(10,10,10,1) 60%);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--spacing-xl);
}

/* =========================================
   Onboarding (Team Selection)
========================================= */
.onboarding-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  min-height: calc(100vh - 80px);
}

.onboarding-container {
  max-width: 800px;
  width: 100%;
}

.onboarding-container h2 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.onboarding-container p {
  margin-bottom: var(--spacing-xl);
  font-size: 1.1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.team-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg) var(--spacing-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

.team-card h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.team-card:hover {
  transform: translateY(-5px);
  background: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Team Specific Hover Effects (White-Labeling Preview) */
.team-card[data-team="GS"]:hover { border-color: #c8102e; box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3); }
.team-card[data-team="FB"]:hover { border-color: #001f5b; box-shadow: 0 5px 15px rgba(0, 31, 91, 0.3); }
.team-card[data-team="BJK"]:hover { border-color: #ffffff; box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2); }
.team-card[data-team="TS"]:hover { border-color: #a40046; box-shadow: 0 5px 15px rgba(164, 0, 70, 0.3); }
.team-card[data-team="BURSA"]:hover { border-color: #007a33; box-shadow: 0 5px 15px rgba(0, 122, 51, 0.3); }

/* =========================================
   Dashboard & Empty State
========================================= */
.dashboard-section {
  flex: 1;
  padding: var(--spacing-xl) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  max-width: 634px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.dashboard-header h2 {
  font-size: 2.5rem;
  margin: 0;
}

.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 634px;
  margin: 0 auto;
  width: 100%;
  transition: filter 0.3s ease; /* Smooth blur transition */
}

.matches-grid.welcome-blur-active {
  filter: blur(5px);
}

/* Universal Circular Header Button Style */
.hdr-btn-circular {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.63) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  line-height: 1 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.2s ease, 
              border-color 0.2s ease, 
              box-shadow 0.2s ease !important;
}

.hdr-btn-circular:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
}

.hdr-btn-circular:active {
  color: #ffffff !important;
  transform: scale(0.95) !important;
}

.hdr-btn-circular.logged-in,
html.is-authenticated a.hdr-btn-circular[data-i18n-title="nav.login"] {
  background-color: rgba(253, 185, 19, 0.15) !important;
  border-color: rgba(253, 185, 19, 0.5) !important;
  color: var(--brand-secondary) !important;
  box-shadow: 0 0 10px rgba(253, 185, 19, 0.2) !important;
}

/* =========================================
   FAZ 0: MOBILE OPTIMIZATIONS (STRICTLY <= 768px)
========================================= */
@media (max-width: 768px) {
  /* Fix Slogan Cutoff */
  .hero {
    padding-top: 125px !important; 
  }
  .hero h1 {
    font-size: 2.2rem !important;
    line-height: 1.2;
    padding: 0 10px;
  }
  
  nav {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-template-rows: auto !important;
    grid-template-areas: 
      "controls logo right"
      "links links links" !important;
    align-items: center !important;
    row-gap: 6px !important;
    column-gap: 0 !important;
    padding: calc(14px + env(safe-area-inset-top)) 12px 14px 12px !important;
  }
  .logo-container {
    grid-area: logo;
    display: flex;
    justify-content: center;
    width: 145px !important;
  }
  .app-logo {
    font-size: 1.5rem !important;
  }
  .nav-links {
    grid-area: links;
    display: flex !important;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    justify-content: center;
    gap: 20px !important;
    padding: 12px 0 0 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 5px;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  nav > div.nav-right {
    grid-area: right;
    justify-self: end;
    display: flex !important;
    gap: 5px !important;
  }
  .nav-controls {
    grid-area: controls;
    justify-self: start;
    display: flex !important;
    gap: 5px !important;
  }
  nav .nav-cta { 
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    margin: 0 !important;
    width: auto !important;
  }


  /* --- CTA GROUP (Glassmorphism & Spacing) --- */
  .cta-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 5px auto 0 auto !important;
    padding: 15px 20px !important;
    background: rgba(20, 20, 20, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    height: auto !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .cta-group .nav-cta {
    white-space: nowrap;
    font-size: 16px !important;
    text-align: center;
    justify-content: center;
    margin: 0 auto !important;
  }
  .waitlist-badge {
    width: 100%;
    justify-content: center;
    font-size: clamp(0.65rem, 3vw, 0.8125rem); /* Auto-shrink on small phones */
    margin: 0 !important;
    white-space: nowrap !important;
  }
  .promo-more-text {
    font-size: clamp(0.65rem, 3vw, 0.8125rem);
  }
  .download-badges {
    flex-direction: row !important;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0 !important;
  }
  .official-badge {
    height: 36px !important;
  }

  /* Premium Auto-Playing Carousel with Dots */
  .features-grid, .virtual-market-grid, .community-features {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    gap: 0 !important; /* Removing gap so each card is exactly 1 screen wide */
    padding: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth; /* Smooth scrolling for JS auto-play */
  }
  .features-grid::-webkit-scrollbar, .virtual-market-grid::-webkit-scrollbar, .community-features::-webkit-scrollbar {
    display: none;
  }
  .feature-card, .market-card, .community-features li {
    min-width: 100% !important; /* Fit perfectly in parent container */
    max-width: 100% !important;
    flex: 0 0 100% !important;
    scroll-snap-align: start !important;
    flex-shrink: 0;
    padding: 20px !important; 
    margin: 0 !important;
    box-sizing: border-box;
    list-style: none !important;
  }
  
  .features {
    padding-bottom: 120px !important;
  }
  
  .community-features {
    margin: 0 !important;
  }
  
  /* Carousel Pagination Dots */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 20px;
    width: 100%;
    min-height: 8px;
  }
  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .carousel-dot.active {
    background: var(--text-main, #fdb913); /* Fallback to yellow if var not defined */
    width: 20px;
    border-radius: 4px;
  }

  /* Other layout fixes */
  .hero-animated-text {
    height: auto !important;
    min-height: 120px;
    margin: 10px 0;
  }
  .animated-line {
    font-size: 0.9rem;
    padding: 10px 15px;
    width: 90%;
    white-space: normal;
    line-height: 1.4;
  }
  .community-preview {
    width: 100%;
    padding: 0 10px;
  }
  .community-card-mockup {
    width: 100%;
    transform: none;
    margin: 0 auto;
  }
  .community {
    scroll-margin-top: 95px !important;
    padding-bottom: 120px !important;
  }
  .virtual-market {
    padding-bottom: 180px !important;
  }
  footer {
    padding-bottom: 120px !important;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  .glass-modal {
    width: 95% !important;
    padding: 20px !important;
    max-height: 90vh;
    overflow-y: auto;
  }
  .legal-modal-card {
    width: 95%;
    padding: 20px;
    max-height: 85vh;
  }
}

/* =========================================
   i18n Badge Visibility CSS State Architecture
========================================= */
.lang-badge { display: none !important; }

html[lang="tr"] .lang-badge.lang-badge-tr { display: inline-block !important; }
html[lang="en"] .lang-badge.lang-badge-en { display: inline-block !important; }
html[lang="pt"] .lang-badge.lang-badge-pt { display: inline-block !important; }


