/* ============================================
   AdaFlaş — Ana Stil Dosyası
   adaflash.com
   ============================================ */

/* --- 1. GOOGLE FONTS & DEĞİŞKENLER --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

:root {
  --blue:        #007bff;
  --red:         #dc3545;
  --dark:        #1a1a2e;
  --gray-dark:   #333333;
  --gray-mid:    #666666;
  --gray-light:  #999999;
  --bg-page:     #f4f6f9;
  --bg-card:     #ffffff;
  --bg-sidebar:  #ffffff;
  --border:      #e8ecf0;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover:0 6px 24px rgba(0,0,0,0.14);
  --radius:      10px;
  --transition:  0.2s ease;
}

/* --- 2. RESET & TEMEL --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--gray-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* --- 3. HEADER --- */
#site-header {
  background: #ffffff;
  border-bottom: 4px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-size: 26px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -1px;
}

.logo-text span {
  color: var(--red);
}

.logo-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-mid);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover {
  background: var(--bg-page);
  color: var(--blue);
}

/* Hamburger (mobil) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobil Menü */
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 20px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* --- 4. ÜST BANNER REKLAM ALANI --- */
.ad-leaderboard {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  text-align: center;
}

.ad-leaderboard img {
  width: 100%;
  max-width: 728px;
  height: 90px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .ad-leaderboard img {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .ad-leaderboard img {
    height: 50px;
  }
}

.ad-leaderboard-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ad-placeholder {
  background: #f0f4ff;
  border: 2px dashed #c5d5f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 12px;
  font-weight: 500;
}

.ad-placeholder.leaderboard {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 0 auto;
}

.ad-placeholder.rectangle {
  width: 300px;
  height: 250px;
}

.ad-placeholder.halfpage {
  width: 300px;
  height: 600px;
}

.ad-placeholder.inline {
  width: 100%;
  height: 90px;
}

/* --- 5. SON DAKİKA TICKER --- */
.breaking-ticker {
  background: var(--red);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
}

.ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-label {
  background: #fff;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: flex;
  gap: 40px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.ticker-item::before {
  content: '●';
  margin-right: 8px;
  opacity: 0.7;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- 6. ANA LAYOUT --- */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* --- 7. HABER AKIŞI --- */
.feed-section {
  min-width: 0; /* Grid taşmasını engeller */
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* --- 8. HABER KARTI --- */
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-left-color var(--transition);
  position: relative;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--red);
}

.news-card.breaking {
  border-left-color: var(--red);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.card-source {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.card-date {
  font-size: 11px;
  color: var(--gray-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.breaking-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.news-card:hover .card-title {
  color: var(--blue);
}

.card-summary {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* --- 9. SPONSOR KARTI (INLINE) --- */
.sponsor-card-inline {
  background: #fffcf2;
  border: 1px solid #f1e2b3;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow var(--transition);
  position: relative;
}

.sponsor-card-inline:hover {
  box-shadow: var(--shadow-hover);
}

.sponsor-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 1;
}

.sponsor-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.sponsor-content {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sponsor-text .sponsor-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 3px;
}

.sponsor-text .sponsor-action {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

.sponsor-wa-btn {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}

.sponsor-wa-btn:hover {
  background: #1da851;
}

/* --- 10. INLINE REKLAM (akış arası) --- */
.ad-inline {
  margin-bottom: 12px;
  text-align: center;
}

/* --- 11. SIDEBAR --- */
.sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

.sidebar-block {
  background: var(--bg-sidebar);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.sidebar-block-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* Sidebar Sponsor Kartı */
.sidebar-sponsor {
  border: 1px solid #f1e2b3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fffcf2;
  cursor: pointer;
  transition: box-shadow var(--transition);
}

.sidebar-sponsor:last-child {
  margin-bottom: 0;
}

.sidebar-sponsor:hover {
  box-shadow: var(--shadow-hover);
}

.sidebar-sponsor img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.sidebar-sponsor-info {
  padding: 10px 12px;
}

.sidebar-sponsor-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 6px;
}

.sidebar-sponsor-btns {
  display: flex;
  gap: 6px;
}

.btn-site {
  flex: 1;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-site:hover {
  background: #0065d1;
}

.btn-wa {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-wa:hover {
  background: #1da851;
}

/* Kaynak Filtre Butonları */
.source-filters {
  display: flex;
  flex-wrap: nowrap;        /* Satır kırılmasın */
  gap: 6px;
  overflow-x: auto;         /* Yatay kaydırma */
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; /* iOS için smooth scroll */
  scrollbar-width: none;    /* Firefox'ta scrollbar gizle */
}

.source-filters::-webkit-scrollbar {
  display: none;            /* Chrome/Safari'de scrollbar gizle */
}

.filter-btn {
  white-space: nowrap;      /* Buton içi metin kırılmasın */
  flex-shrink: 0;           /* Butonlar küçülmesin */
}

.filter-btn {
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--gray-mid);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* --- 12. HABER DETAY MODAL --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 14px;
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.modal-close {
  background: #fff0f1;
  border: none;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition);
}

.modal-close:hover {
  background: #ffe0e3;
}

.modal-body {
  padding: 10px 28px 28px;
}

.modal-source {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.modal-date {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 16px;
}

.modal-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 14px;
}

.modal-summary {
  font-size: 16px;
  color: var(--gray-mid);
  line-height: 1.75;
  margin-bottom: 28px;
}

.modal-read-btn {
  display: block;
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}

.modal-read-btn:hover {
  background: #0065d1;
  transform: translateY(-1px);
}

/* --- 13. LOADING & SPINNER --- */
.loader {
  text-align: center;
  padding: 30px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-size: 13px;
  color: var(--gray-light);
}

.no-more {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--gray-light);
}

/* --- 14. FOOTER --- */
#site-footer {
  background: var(--dark);
  color: #aaa;
  margin-top: 40px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .logo-text {
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: #aaa;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #777;
}

.footer-bottom a {
  color: #777;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--blue);
}

/* --- 15. YASAL SAYFALAR (privacy, terms vb.) --- */
.legal-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.legal-page h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.legal-page .last-updated {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-page ul {
  padding-left: 20px;
  list-style: disc;
}

/* --- 16. İLETİŞİM SAYFASI --- */
.contact-page {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.contact-page h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
  transition: border-color var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
}

.contact-form textarea {
  height: 130px;
  resize: vertical;
}

.btn-submit {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
  background: #0065d1;
  transform: translateY(-1px);
}

/* --- 17. RESPONSİVE MEDYA SORGULARI --- */

/* Tablet */
@media (max-width: 1024px) {
  .page-wrapper {
    grid-template-columns: 1fr 260px;
    gap: 18px;
  }
}

/* Tablet küçük */
@media (max-width: 768px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .ad-placeholder.leaderboard {
    height: 60px;
  }
}

/* Mobil */
@media (max-width: 480px) {
  .header-inner {
    height: 56px;
  }

  .logo-text {
    font-size: 22px;
  }

  .page-wrapper {
    padding: 14px 12px;
  }

  .news-card {
    padding: 14px;
  }

  .card-title {
    font-size: 15px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .modal-box {
    border-radius: 10px;
    max-height: 94vh;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-body {
    padding: 8px 18px 22px;
  }
}

/* =====================
   Geliştirici Atfı
   ===================== */
.dev-credit {
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
    display: block;
    text-align: center;
}
.dev-credit a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}
.dev-credit a:hover {
    text-decoration: underline;
}