/* ==========================================================================
   robotyarisi.com.tr - Kurumsal Web Standartları (Selim ÇELİK Standartları)
   Saf, Net, Ferah Açık Renk, Tek Satır Başlıklar, Simetrik Grid Mimarisi
   ========================================================================== */

:root {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --color-primary: #1e3a8a;      /* Derin Kurumsal Lacivert */
  --color-primary-light: #2563eb;
  --color-accent: #dc2626;       /* Yarış & Heyecan Kırmızısı */
  --color-gold: #d97706;         /* Şampiyonluk Altını */
  --text-main: #0f172a;          /* Yüksek Kontrastlı Koyu Metin */
  --text-muted: #475569;         /* Okunabilir Orta Gri */
  --border-color: #e2e8f0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. Üst Bant (Top Bar) ve İletişim Düzeni (Tek Satır Standardı)
   ========================================================================== */
.top-bar {
  background-color: #0b1329;
  color: #cbd5e1;
  font-size: 13px;
  border-bottom: 1px solid #1e293b;
  height: 42px;
  display: flex;
  align-items: center;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.top-bar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
}

.top-bar-contact a:hover {
  color: #ffffff;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.top-bar-actions a {
  color: #cbd5e1;
}

.top-bar-actions a:hover {
  color: #ffffff;
}

/* ==========================================================================
   2. Ana Navigasyon (Header)
   ========================================================================== */
.main-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}

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

.btn-ilan-ver {
  background-color: var(--color-accent);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-ilan-ver:hover {
  background-color: #b91c1c;
}

/* ==========================================================================
   3. Başlıklar ve Bölüm Açıklamaları (Tek Satır - white-space: nowrap)
   ========================================================================== */
.section-header {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 14px;
}

.section-header-left {
  overflow: hidden;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  white-space: nowrap;
  margin-bottom: 4px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0;
}

.section-more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-light);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-more-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   4. Hero Vitrin / Hızlı Arama & Filtreleme Bölümü
   ========================================================================== */
.hero-section {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 44px 0 40px;
}

.hero-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.hero-badge {
  display: inline-block;
  background-color: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 16px;
  color: #cbd5e1;
  white-space: nowrap;
  margin-bottom: 24px;
}

.search-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
  gap: 12px;
  background-color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.search-input, .search-select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  background-color: #f8fafc;
  outline: none;
}

.search-input:focus, .search-select:focus {
  border-color: var(--color-primary-light);
  background-color: #ffffff;
}

.btn-search {
  height: 46px;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.btn-search:hover {
  background-color: var(--color-primary-light);
}

/* ==========================================================================
   5. Kart, Vitrin ve Simetrik Grid Standartları
   ========================================================================== */
/* 3x2 Simetrik Grid (6 Kart) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 4x2 Simetrik Grid (8 Kart) */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Yarışma Kartı Mimarisi */
.comp-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

.comp-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.comp-card-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 700;
}

.badge-city {
  color: var(--color-primary);
  white-space: nowrap;
}

.badge-scope {
  background-color: #e2e8f0;
  color: var(--text-main);
  padding: 2px 6px;
  border-radius: 2px;
}

.comp-card-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Özellik Kutusu / Yatay İkon - Başlık (.fb-header) */
.fb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.fb-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: #eff6ff;
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Çift Başlıksız, Tek Net Ana Başlık (<h3>) */
.comp-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.comp-org {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-bottom: 12px;
}

/* 2 Satır Line-Clamp Sınırı */
.comp-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.comp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.comp-tag {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.comp-card-footer {
  border-top: 1px solid var(--border-color);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
}

.comp-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.btn-detail {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary-light);
}

/* ==========================================================================
   6. 2. El Robot & Malzeme Kartı Mimarisi (4x2 Simetrik Grid)
   ========================================================================== */
.market-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.market-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.market-card-img {
  height: 160px;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.market-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
}

.market-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.market-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.market-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  white-space: nowrap;
}

.market-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: auto;
  white-space: nowrap;
}

/* ==========================================================================
   7. Şampiyonlar Kürsüsü (Hall of Fame) Mimarisi
   ========================================================================== */
.hof-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.hof-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  white-space: nowrap;
}

.hof-rank {
  background-color: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
}

.hof-specs-table {
  width: 100%;
  font-size: 12px;
  margin-top: 12px;
  border-collapse: collapse;
}

.hof-specs-table td {
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.hof-specs-table td:first-child {
  color: var(--text-muted);
  font-weight: 600;
  width: 35%;
}

/* ==========================================================================
   8. Footer (Selim ÇELİK İmza Standardı)
   ========================================================================== */
.main-footer {
  background-color: #0b1329;
  color: #94a3b8;
  padding: 48px 0 24px;
  margin-top: 60px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  white-space: nowrap;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  white-space: nowrap;
}

.footer-signature a {
  color: #cbd5e1;
  font-weight: 600;
}

.footer-signature a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   9. Mobil Uyumluluk
   ========================================================================== */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .search-filter-bar { grid-template-columns: 1fr; }
  .section-title, .section-desc, .hero-title, .hero-subtitle { white-space: normal; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar-contact { display: none; }
  .header-inner { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
  .nav-menu { flex-wrap: wrap; gap: 14px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
