/*
Theme Name: Dünyaya İki Bilet
Theme URI: https://dunyayaikibilet.com
Author: Dünyaya İki Bilet
Author URI: https://instagram.com/dunyaya2bilet
Description: Tamamen özelleştirilebilir, çoklu bileşen alanlı (sağ, sol, alt, üst), mobil uyumlu seyahat ve magazin blogu teması. WordPress Özelleştirici ve Bileşenler üzerinden sitenin her noktası kolayca yönetilebilir.
Version: 4.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dunyaya-iki-bilet
Tags: news, blog, magazine, travel, grid-layout, two-columns, three-columns, custom-menu, custom-logo, featured-images, custom-colors, widgets
*/

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --title-color: #0f172a;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 14px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
  --container-width: 1240px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent);
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== 1. ÜST BİLEŞEN ALANI (HEADER TOP) ==================== */
.header-top-widget-area {
  background: #090d16;
  color: #94a3b8;
  font-size: 13px;
  border-bottom: 1px solid #1e293b;
  padding: 6px 0;
}

/* ==================== 2. ANA BAŞLIK & LOGO ALANI ==================== */
.site-header-main {
  background: #ffffff;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-custom-logo img.custom-logo,
.site-custom-logo img {
  max-height: 75px;
  width: auto;
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

.site-custom-logo img:hover {
  transform: scale(1.02);
}

.site-title-group .site-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--title-color);
  line-height: 1.1;
  margin-bottom: 4px;
}

.site-title-group .site-title a {
  color: var(--title-color);
  text-decoration: none;
}

.site-title-group .site-title a:hover {
  color: var(--accent);
}

.site-title-group .site-description {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.instagram-nav-btn {
  background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.instagram-nav-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* ==================== 3. ANA MENÜ (MOBİL UYUMLU HAMBURGER İLE) ==================== */
.main-navigation {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-menu li a {
  display: block;
  padding: 14px 18px;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-form input {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 7px 14px 7px 36px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  width: 170px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.header-search-form input:focus {
  width: 220px;
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent);
}

.header-search-form input::placeholder {
  color: #cbd5e1;
}

.header-search-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

/* ==================== 4. 5'Lİ MANŞET VİTRİNİ ==================== */
.newsblogger-hero-section {
  padding: 24px 0 16px;
}

.hero-grid-wrapper {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  height: 480px;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
}

.hero-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.hero-sub-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-main-card:hover .hero-card-img,
.hero-sub-card:hover .hero-card-img {
  transform: scale(1.05);
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.4) 40%, rgba(15, 23, 42, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
}

.hero-sub-card .hero-card-overlay {
  padding: 16px;
}

.category-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: var(--accent);
  margin-bottom: 10px;
  align-self: flex-start;
}

.hero-main-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #ffffff;
}

.hero-sub-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #ffffff;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #cbd5e1;
}

/* ==================== 5. ESNEK SÜTUN DÜZENİ (SAĞ VE SOL SIDEBAR DESTEĞİ) ==================== */
.content-layout-wrapper {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}

/* Varsayılan: Tek Sağ Sidebar */
.content-layout-wrapper.has-right-sidebar {
  grid-template-columns: 1fr 340px;
}

/* Çift Sidebar: Sol + İçerik + Sağ */
.content-layout-wrapper.has-both-sidebars {
  grid-template-columns: 260px 1fr 320px;
}

/* Yalnızca Sol Sidebar */
.content-layout-wrapper.has-left-sidebar-only {
  grid-template-columns: 320px 1fr;
}

/* Sidebarsız Tam Genişlik */
.content-layout-wrapper.no-sidebars {
  grid-template-columns: 1fr;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 22px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
  position: relative;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 50px;
  height: 3px;
  background: var(--accent);
}

.section-view-all {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}

.main-posts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-card-horizontal {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card-horizontal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.news-card-thumb {
  position: relative;
  height: 100%;
  min-height: 200px;
  overflow: hidden;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card-horizontal:hover .news-card-thumb img {
  transform: scale(1.06);
}

.news-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 10px;
}

.news-card-title a:hover {
  color: var(--accent);
}

.news-card-excerpt {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  font-size: 13px;
}

.read-more-btn {
  font-weight: 700;
  color: var(--accent);
}

/* ==================== 6. YAZI İÇİ LİNKLERİN TIKLANABİLİRLİĞİ (CRITICAL FIX) ==================== */
.entry-content {
  font-size: 17px;
  line-height: 1.85;
  color: #334155;
}

.entry-content p {
  margin-bottom: 24px;
}

/* Yazı içi linkleri belirgin, renkli ve kolay tıklanabilir yap */
.entry-content a {
  color: var(--accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 700 !important;
  cursor: pointer !important;
  position: relative;
  z-index: 2;
  display: inline;
}

.entry-content a:hover {
  color: var(--accent-hover) !important;
  text-decoration-thickness: 2px;
}

.entry-content h2 {
  font-size: 25px;
  font-weight: 800;
  color: var(--primary);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.entry-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 45px;
  height: 2px;
  background: var(--accent);
}

.entry-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px;
}

.entry-content blockquote {
  border-left: 4px solid var(--accent);
  background: #fff1f2;
  padding: 18px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #9f1239;
  font-size: 17.5px;
  margin: 28px 0;
}

/* ==================== 7. BÜYÜK VE BELİRGİN SAYFALAMA ==================== */
.pagination-area {
  margin: 45px 0 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-area .nav-links,
.pagination-area .pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-area a.page-numbers,
.pagination-area span.page-numbers,
.pagination-area a.page-link,
.pagination-area span.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: var(--primary);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  cursor: pointer;
}

.pagination-area a.page-numbers:hover {
  background: #f1f5f9;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.pagination-area span.page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
  transform: scale(1.06);
}

.pagination-area .prev.page-numbers,
.pagination-area .next.page-numbers {
  padding: 0 22px;
  background: #f8fafc;
  border-color: #94a3b8;
  font-weight: 800;
}

.pagination-area .prev.page-numbers:hover,
.pagination-area .next.page-numbers:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==================== 8. KENAR ÇUBUĞU & BİLEŞENLER (WIDGETS) ==================== */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.author-widget {
  text-align: center;
}

.author-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.author-tagline {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.author-bio {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.author-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 24px;
  box-shadow: 0 4px 10px rgba(220, 39, 67, 0.25);
  cursor: pointer;
}

.author-social-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.dm-button {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25) !important;
}

.social-counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-counter-box {
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  font-weight: 700;
}

.social-counter-box.instagram { background: #e1306c; }
.social-counter-box.youtube { background: #ff0000; }
.social-counter-box.tiktok { background: #000000; }
.social-counter-box.pinterest { background: #bd081c; }

.tabbed-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tab-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tab-post-thumb {
  width: 76px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.tab-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-post-content h5 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.tab-post-content span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==================== 9. TEKİL YAZI (SINGLE POST) ==================== */
.single-post-wrapper {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.breadcrumbs {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.single-post-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 16px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}

.single-hero-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.single-hero-thumb img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.single-author-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 36px 0;
}

/* ==================== 10. ALT ALAN (FOOTER) ==================== */
.site-footer {
  background: #090d16;
  color: #94a3b8;
  padding-top: 50px;
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

.footer-widget-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.footer-bottom-bar {
  padding: 22px 0;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==================== 11. GELİŞMİŞ MOBİL UYUMLULUK (RESPONSIVE) ==================== */
@media (max-width: 1024px) {
  .hero-grid-wrapper {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-main-card {
    height: 380px;
  }
  .hero-sub-grid {
    height: 360px;
  }
  .content-layout-wrapper,
  .content-layout-wrapper.has-right-sidebar,
  .content-layout-wrapper.has-both-sidebars,
  .content-layout-wrapper.has-left-sidebar-only {
    grid-template-columns: 1fr;
  }
  .footer-widgets-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .site-header-main {
    padding: 16px 0;
  }
  .header-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .site-branding {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .site-title-group .site-title {
    font-size: 26px;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  .nav-container {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    gap: 8px;
    height: auto;
  }
  /* Mobil doğrudan görünür, kaydırılabilir şık menü bandı */
  .nav-menu {
    display: flex !important;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 8px;
    padding: 6px 16px;
    margin: 0;
    background: transparent;
    border: none;
  }
  .nav-menu::-webkit-scrollbar {
    display: none;
  }
  .nav-menu li {
    flex-shrink: 0;
    list-style: none;
  }
  .nav-menu li a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .nav-menu li a:hover,
  .nav-menu li.current-menu-item a {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
  }
  .nav-right-actions {
    width: 100%;
    padding: 4px 16px 8px 16px;
    justify-content: center;
  }
  .header-search-form {
    width: 100%;
  }
  .header-search-form input {
    width: 100%;
    max-width: 100%;
  }
  .news-card-horizontal {
    grid-template-columns: 1fr;
  }
  .news-card-thumb {
    height: 200px;
  }
  .hero-sub-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-sub-card {
    height: 200px;
  }
  .footer-widgets-grid {
    grid-template-columns: 1fr;
  }
  .single-post-wrapper {
    padding: 20px;
  }
  .single-post-title {
    font-size: 24px;
  }
  .single-author-box {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
