/* Başkan Landing Page - Mobile First Responsive CSS */

/* ===== Custom Font ===== */
@font-face {
  font-family: 'BoldPixels';
  src: url('../assets/fonts/boldpixels.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
  /* Colors from game */
  --bg-dark: #1e2d3d;
  --bg-darker: #151f2b;
  --card-bg: #f5f0e1;
  --card-border: #8b7355;
  --text-dark: #2c1810;
  --text-light: #f5f0e1;
  --text-muted: #a0a0a0;

  /* Stat colors */
  --fans-red: #e74c3c;
  --finance-yellow: #f1c40f;
  --performance-green: #2ecc71;
  --politics-blue: #3498db;

  /* Accents */
  --grass-green: #2d5a27;
  --grass-light: #4a7c43;

  /* Typography */
  --font-pixel: 'BoldPixels', 'Press Start 2P', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Stadium grass gradient at bottom */
body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30vh;
  background: linear-gradient(to top, var(--grass-green), transparent);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-pixel);
  line-height: 1.3;
  text-transform: uppercase;
}

h1 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--finance-yellow);
}

h3 {
  font-size: 0.75rem;
  margin-bottom: var(--spacing-xs);
}

p {
  margin-bottom: var(--spacing-sm);
}

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

/* ===== Header ===== */
.header {
  padding: var(--spacing-md) 0;
  text-align: center;
}

.logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== Hero Section ===== */
.hero {
  padding: var(--spacing-md) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


.hero__tagline {
  font-family: var(--font-pixel);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.hero__title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

/* ===== Swipe Card Demo ===== */
.swipe-demo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swipe-demo {
  position: relative;
  width: 280px;
  height: 400px;
  margin: 0 auto var(--spacing-sm);
  perspective: 1000px;
}

.swipe-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border-radius: 16px;
  border: 3px solid var(--card-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  transform-origin: center bottom;
  transition: transform 0.1s ease-out;
  overflow: hidden;
}

.swipe-card:active {
  cursor: grabbing;
}

.swipe-card.dragging {
  transition: none;
}

.swipe-card.flyout-left {
  animation: flyOutLeft 0.4s ease-out forwards;
}

.swipe-card.flyout-right {
  animation: flyOutRight 0.4s ease-out forwards;
}

@keyframes flyOutLeft {
  to {
    transform: translateX(-150%) rotate(-30deg);
    opacity: 0;
  }
}

@keyframes flyOutRight {
  to {
    transform: translateX(150%) rotate(30deg);
    opacity: 0;
  }
}

.card__image {
  width: 100%;
  height: 55%;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(135deg, var(--politics-blue), var(--bg-dark));
}

.card__content {
  padding: var(--spacing-sm);
  height: 45%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.25rem;
}

/* Choices row at top */
.card__choices {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 0.25rem;
}

.card__choice {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s, transform 0.2s;
  max-width: 45%;
}

.card__choice--left {
  text-align: left;
}

.card__choice--right {
  text-align: right;
}

.card__choice.active {
  color: var(--text-dark);
  transform: scale(1.1);
  font-weight: bold;
}

/* Character name */
.card__name {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  color: var(--text-dark);
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
}

/* Character title */
.card__title {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.25rem;
}

.card__text {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.5;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.25rem;
}

/* Swipe hint */
.swipe-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--spacing-sm);
}

.swipe-hint span {
  display: inline-block;
  animation: swipeHint 2s ease-in-out infinite;
}

@keyframes swipeHint {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* ===== Download Buttons ===== */
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
  margin: var(--spacing-lg) 0;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--text-light);
  color: var(--text-dark);
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 200px;
  justify-content: center;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-dark);
}

.download-btn svg {
  width: 24px;
  height: 24px;
}

/* ===== Sections ===== */
.section {
  padding: var(--spacing-xl) 0;
}

.section--alt {
  background: var(--bg-darker);
}

.section__title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* ===== Stats Display ===== */
.stats-bar {
  display: flex;
  justify-content: space-around;
  background: var(--card-bg);
  border-radius: 12px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border: 2px solid var(--card-border);
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-xs);
  object-fit: contain;
}

.stat__label {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  color: var(--text-dark);
  text-transform: uppercase;
}

/* ===== Features Grid ===== */
.features {
  display: grid;
  gap: var(--spacing-md);
}

.feature {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature__icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.feature__title {
  margin-bottom: var(--spacing-xs);
  font-size: 0.875rem;
}

.feature__desc {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
}

.cta-section .download-buttons {
  justify-content: center;
}

/* ===== Characters List ===== */
.characters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

.character-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== No Ads Banner ===== */
.no-ads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin: var(--spacing-lg) 0;
}

.no-ads__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--performance-green);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 8px;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-darker);
  padding: var(--spacing-lg) 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer__link:hover {
  color: var(--text-light);
}

.footer__copyright {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===== Language Switcher ===== */
.lang-switch {
  display: flex;
  gap: var(--spacing-xs);
  justify-content: center;
  margin: var(--spacing-sm) 0;
}

.lang-switch__btn {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switch__btn:hover,
.lang-switch__btn.active {
  background: var(--text-light);
  color: var(--text-dark);
}

/* ===== Tablet Breakpoint ===== */
@media (min-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }

  .swipe-demo {
    max-width: 380px;
    height: 520px;
  }

  .card__choice {
    font-size: 0.75rem;
  }

  .card__name {
    font-size: 1rem;
  }

  .card__title {
    font-size: 0.8rem;
  }

  .card__text {
    font-size: 0.85rem;
  }

  .download-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo {
    width: 100px;
    height: 100px;
  }
}

/* ===== Desktop Breakpoint ===== */
@media (min-width: 1024px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 0.875rem;
  }

  .container {
    padding: 0 var(--spacing-lg);
  }

  /* Two-column hero layout */
  .hero {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
  }

  .hero .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
  }

  .hero__content {
    flex: 1;
    align-items: flex-start;
    text-align: left;
    max-width: 500px;
  }

  .hero__logo {
    width: 100px;
    height: 100px;
  }

  .hero__tagline {
    font-size: 1rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
  }

  .swipe-demo-wrapper {
    flex: 0 0 auto;
  }

  /* Scale card to fit viewport height */
  .swipe-demo {
    width: min(300px, 30vw);
    height: min(420px, 60vh);
  }

  .card__choice {
    font-size: 0.7rem;
  }

  .card__name {
    font-size: 0.95rem;
  }

  .card__title {
    font-size: 0.75rem;
  }

  .card__text {
    font-size: 0.8rem;
  }

  .stat__icon {
    width: 64px;
    height: 64px;
  }

  .stat__label {
    font-size: 0.75rem;
  }

  .download-buttons {
    justify-content: flex-start;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo {
    width: 100px;
    height: 100px;
  }
}

/* ===== Large Desktop ===== */
@media (min-width: 1440px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero__tagline {
    font-size: 1.125rem;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    font-size: 1.375rem;
  }

  .hero__logo {
    width: 120px;
    height: 120px;
  }

  .swipe-demo {
    width: 360px;
    height: min(500px, 65vh);
  }

  .card__choice {
    font-size: 0.8rem;
  }

  .card__name {
    font-size: 1.1rem;
  }

  .card__title {
    font-size: 0.85rem;
  }

  .card__text {
    font-size: 0.9rem;
  }

  .stat__icon {
    width: 80px;
    height: 80px;
  }

  .stat__label {
    font-size: 0.875rem;
  }
}

/* ===== Privacy/Terms Pages ===== */
.legal-page {
  padding: var(--spacing-xl) 0;
}

.legal-page h1 {
  margin-bottom: var(--spacing-lg);
}

.legal-page h2 {
  color: var(--text-light);
  margin-top: var(--spacing-lg);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.legal-page ul {
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.legal-page a {
  color: var(--performance-green);
}
