/*
 * SportWise - Download Sayfası Koyu Tema Tasarımı
 * Index sayfasıyla uyumlu modern koyu tema
 */

/* Ana Renkler ve Değişkenler - Index ile Uyumlu */
:root {
  --primary-color: #3b82f6;
  --primary-dark: #1e40af;
  --secondary-color: #64748b;
  --dark-bg: #080b14;
  --dark-card: #0f1419;
  --dark-border: #1a1f2e;
  --navy-dark: #050810;
  --navy-medium: #0a0f1a;
  --navy-light: #151b2a;
  --text-light: #f8fafc;
  --text-muted: #8b949e;
  --gradient-bg: linear-gradient(135deg, #080b14 0%, #0f1419 100%);
  --glass-bg: rgba(15, 20, 25, 0.8);
  --shadow-dark: 0 8px 32px rgba(8, 11, 20, 0.6);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --warning: #f59e0b;
  --success: #10b981;
  --apple-blue: #007aff;
  --windows-blue: #0078d4;
}

/* Temel Stiller */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* Index ile Aynı Arkaplan Efektleri */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 64, 175, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Download Section */
.download-section {
  background: var(--gradient-bg);
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
}

.download-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><style>.st0{fill:none;stroke:%233b82f6;stroke-width:0.5;opacity:0.1;}</style></defs><path class="st0" d="M50,100 C150,50 250,150 350,100"/><circle class="st0" cx="100" cy="300" r="30"/><path class="st0" d="M200,50 L250,100 L200,150 L150,100 Z"/></svg>') no-repeat;
  background-size: 800px 800px;
  animation: heroFloat 40s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-light), var(--primary-color), #00d9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  letter-spacing: -0.02em;
}

.subtitle-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  position: relative;
}

.flow-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  margin-right: 1rem;
  border-radius: 2px;
}

.subtitle-text {
  color: var(--text-light);
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Download Cards */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  justify-items: center;
}

.download-card {
  background: var(--glass-bg);
  border: 1px solid var(--dark-border);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  max-width: 320px;
  width: 100%;
}

.download-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(8, 11, 20, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  transition: left 0.6s ease;
}

.download-card:hover::before {
  left: 100%;
}

/* Card Header */
.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.platform-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.download-card:nth-child(1) .platform-icon,
.download-card:nth-child(2) .platform-icon {
  color: var(--apple-blue);
  border-color: rgba(0, 122, 255, 0.3);
  background: rgba(0, 122, 255, 0.15);
}

.download-card:nth-child(3) .platform-icon {
  color: var(--windows-blue);
  border-color: rgba(0, 120, 212, 0.3);
  background: rgba(0, 120, 212, 0.15);
}

.download-card:nth-child(4) .platform-icon {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.15);
}

.platform-icon:hover {
  transform: rotate(10deg) scale(1.1);
}

.platform-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.platform-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* Card Content */
.card-content {
  text-align: center;
}

.version-info {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.version-badge {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.file-size {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Download Button */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-content: space-between;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
  color: white;
}

.btn-icon {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.main-text {
  font-size: 1rem;
  font-weight: 600;
}

.sub-text {
  font-size: 0.8rem;
  opacity: 0.8;
}

.btn-arrow {
  transition: var(--transition);
  flex-shrink: 0;
}

.download-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Download Animation */
.download-btn.downloading {
  background: linear-gradient(135deg, var(--success), #059669);
  cursor: not-allowed;
}

.download-btn.downloading .btn-icon i {
  animation: downloadSpin 1s linear infinite;
}

@keyframes downloadSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Coming Soon Card */
.coming-soon {
  opacity: 0.7;
}

.coming-soon-badge {
  background: linear-gradient(135deg, var(--warning), #d97706);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  animation: comingSoonPulse 2s ease-in-out infinite;
}

@keyframes comingSoonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.coming-soon-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(100, 116, 139, 0.3);
  color: var(--text-muted);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  justify-content: space-between;
  cursor: not-allowed;
}

/* Additional Info */
.additional-info {
  text-align: center;
  margin-top: 2rem;
}

.info-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.info-text i {
  color: var(--primary-color);
}

/* Responsive Tasarım */
@media (max-width: 992px) {
  /* Mobil Hero Yüksekliği ve Taşma Sorunu */
  .download-section {
    scroll-margin-top: 80px; /* Header yüksekliği */
  }
}

@media (max-width: 768px) {
  .download-section {
    /* Yükseklik düzeltme */
    scroll-margin-top: 70px;
  }

  .page-header {
    margin-bottom: 2rem;
  }

  .header-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .display-2 {
    font-size: 2.5rem;
  }

  .download-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .download-card {
    padding: 1.5rem;
  }

  .platform-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .download-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .download-section {
    /* Yükseklik düzeltme */
    scroll-margin-top: 60px;
  }

  .page-header {
    margin-bottom: 2rem;
  }

  .display-2 {
    font-size: 2rem;
  }

  .subtitle-flow {
    flex-direction: column;
    gap: 0.5rem;
  }

  .flow-line {
    margin: 0;
    width: 40px;
  }

  .download-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .download-card {
    padding: 1.25rem;
    max-width: none;
  }

  .version-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .download-btn {
    padding: 0.75rem 1.25rem;
    gap: 0.75rem;
  }

  .btn-icon {
    width: 30px;
    height: 30px;
  }

  .additional-info .info-text {
    flex-direction: column;
    gap: 0.25rem;
  }
}

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

/* Print Stilleri */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  
  .download-card {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}

/* ========================================= */
/* ÖNERİLEN PLATFORM VURGULANMASı STİLLERİ */
/* ========================================= */

/* Önerilen platform kartı için özel stiller */
.download-card.recommended {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 
              0 25px 50px rgba(8, 11, 20, 0.8);
  transform: translateY(-5px);
  background: linear-gradient(135deg, 
              rgba(59, 130, 246, 0.08) 0%, 
              var(--glass-bg) 50%, 
              rgba(59, 130, 246, 0.05) 100%);
  animation: recommendedPulse 2s ease-in-out infinite;
}

  .download-card.recommended:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 
                0 30px 60px rgba(8, 11, 20, 0.9);
  }

/* Önerilen badge stili */
.recommended-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  margin-bottom: 0.8rem;
  animation: badgeSlideDown 0.6s ease-out;
  text-align: center;
  max-width: 100%;
}

.recommended-badge i {
  color: #fbbf24;
  animation: starTwinkle 1.5s ease-in-out infinite alternate;
}

/* Önerilen kart için glow animasyonu */
@keyframes recommendedPulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 
                0 25px 50px rgba(8, 11, 20, 0.8);
  }
  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 
                0 25px 50px rgba(8, 11, 20, 0.8);
  }
}

/* Badge slide-down animasyonu */
@keyframes badgeSlideDown {
  0% {
    transform: translateY(-20px) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translateY(2px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Yıldız parıltı animasyonu */
@keyframes starTwinkle {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
  .recommended-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    margin-bottom: 0.6rem;
  }
  
  .download-card.recommended {
    transform: translateY(-3px);
  }
  
  .download-card.recommended:hover {
    transform: translateY(-8px);
  }
} 