/* ==========================================================================
   Jieshuo İndirme Merkezi - Modern, Temiz & Erişilebilir Tasarım
   ========================================================================== */

:root {
  --bg-body: #0b0f19;
  --bg-header: #111827;
  --bg-card: #151e2e;
  --bg-card-hover: #1c273c;
  --bg-subtle: #1e293b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.4);
  
  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.25);
  --primary-hover: #0284c7;
  --primary-text: #041421;
  
  --emerald: #34d399;
  --emerald-bg: rgba(52, 211, 153, 0.12);
  --purple: #a78bfa;
  --purple-bg: rgba(167, 139, 250, 0.12);
  --amber: #fbbf24;
  --amber-bg: rgba(251, 191, 36, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 30px -6px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px -5px var(--primary-glow);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Erişilebilirlik Atlatma Bağlantısı */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: var(--primary-text);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Marka
   ========================================================================== */
header.site-header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background-color: rgba(17, 24, 39, 0.85);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-text p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-refresh:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   Yıl Gezinti Çubuğu (Chips)
   ========================================================================== */
.year-nav-bar {
  background-color: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
}

.year-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.year-nav-label {
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.year-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chip-item:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
  background-color: var(--bg-card-hover);
}

.chip-active {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #041421;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

.chip-active:hover {
  filter: brightness(1.05);
  color: #041421;
}

.chip-badge-current {
  background-color: #041421;
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chip-badge-count {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* ==========================================================================
   Ana İçerik & Bildirimler
   ========================================================================== */
main {
  flex: 1;
  padding: 2rem 0 3.5rem;
}

.notice {
  background-color: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Arşiv Yılı Bilgi Şeridi */
.archive-banner {
  background: linear-gradient(135deg, #151e2e, #1e293b);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.archive-banner h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.archive-banner p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.btn-primary-return {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #041421;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
  transition: all 0.2s ease;
}

.btn-primary-return:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ==========================================================================
   Hero Kartı: En Son Sürüm
   ========================================================================== */
.hero-card {
  background: linear-gradient(180deg, #172033 0%, #131b2c 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #34d399);
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-title-group h2 {
  font-size: 1.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: #ffffff;
}

.badge-latest {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.badge-beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--amber-bg);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.badge-stable-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--emerald);
}

.hero-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-github:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   İndirme Kartları Grid (Standart, Lite, Max)
   ========================================================================== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.download-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.download-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Kart Türlerine Göre Vurgu */
.card-standard {
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(180deg, #182337 0%, #141c2c 100%);
}

.card-lite {
  border-color: rgba(52, 211, 153, 0.25);
  background: linear-gradient(180deg, #142426 0%, #131b26 100%);
}

.card-max {
  border-color: rgba(167, 139, 250, 0.25);
  background: linear-gradient(180deg, #1d1b33 0%, #151829 100%);
}

.item-top {
  margin-bottom: 1.5rem;
}

.item-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-standard {
  background-color: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-lite {
  background-color: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-max {
  background-color: var(--purple-bg);
  color: var(--purple);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.badge-intl {
  background-color: var(--amber-bg);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.download-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  word-break: break-all;
}

.download-item .item-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.item-specs {
  display: flex;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
}

.item-specs strong {
  color: var(--text-main);
}

/* İndir Butonları */
.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-download-primary {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #041421;
}

.btn-download-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-download-emerald {
  background: linear-gradient(135deg, #059669, #34d399);
  color: #022319;
}

.btn-download-emerald:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.35);
}

.btn-download-purple {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #160c2b;
}

.btn-download-purple:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.35);
}

/* ==========================================================================
   Sürüm Notları (Changelog)
   ========================================================================== */
details.changelog {
  margin-top: 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
}

details.changelog summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

details.changelog summary:hover {
  color: #ffffff;
}

details.changelog .changelog-body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-height: 280px;
  overflow-y: auto;
}

/* ==========================================================================
   Tablo & Arama Bölümü
   ========================================================================== */
.archive-section {
  margin-top: 2.5rem;
}

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.archive-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.search-box {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.search-input::placeholder {
  color: var(--text-dim);
}

/* Tablo */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

table.releases-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.releases-table th,
table.releases-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

table.releases-table th {
  background-color: #0e1524;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

table.releases-table tr:last-child td {
  border-bottom: none;
}

table.releases-table tr:hover td {
  background-color: var(--bg-card-hover);
}

.table-tag {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}

.table-badge-latest {
  display: inline-block;
  background-color: var(--emerald-bg);
  color: var(--emerald);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  vertical-align: middle;
  text-transform: uppercase;
}

.table-badge-beta {
  display: inline-block;
  background-color: var(--amber-bg);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  vertical-align: middle;
  text-transform: uppercase;
}

.table-badge-stable {
  display: inline-block;
  background-color: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  vertical-align: middle;
  text-transform: uppercase;
}

.table-date {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.table-apks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-apk-table {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-apk-table:hover {
  background-color: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Geçmiş Yıllar Kartları
   ========================================================================== */
.past-years-section {
  margin-top: 3.5rem;
  padding: 2rem;
  background-color: #121927;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.past-years-section h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.past-years-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.past-year-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.past-year-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.past-year-card .year-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.past-year-card .year-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.past-year-card .year-badge {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-header);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Paket Türleri Bilgi Bölümü
   ========================================================================== */
.info-section {
  background-color: #111827;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3.5rem;
}

.info-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.info-box {
  background-color: var(--bg-card);
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.info-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.info-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  background-color: var(--bg-header);
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.7;
}

footer.site-footer a {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
  .hero-card {
    padding: 1.35rem;
  }
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  .archive-header {
    flex-direction: column;
    align-items: stretch;
  }
  .archive-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-primary-return {
    width: 100%;
    justify-content: center;
  }
}
