/*
Theme Name: SporXpress
Theme URI: https://example.com/sporxpress
Author: OpenAI
Author URI: https://openai.com
Description: Modern, hızlı ve mobil uyumlu spor haber WordPress teması.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sporxpress
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar
*/

:root {
  --sx-bg: #0b1220;
  --sx-card: #111827;
  --sx-card-2: #1f2937;
  --sx-text: #f3f4f6;
  --sx-muted: #9ca3af;
  --sx-accent: #16a34a;
  --sx-accent-2: #22c55e;
  --sx-border: rgba(255,255,255,.08);
  --sx-white: #ffffff;
  --sx-danger: #dc2626;
  --sx-shadow: 0 10px 30px rgba(0,0,0,.22);
  --sx-radius: 18px;
  --sx-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f7fb;
  color: #111827;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sx-accent); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 32px), var(--sx-container)); margin: 0 auto; }
.screen-reader-text { position: absolute; left: -9999px; }
.site-main { padding: 24px 0 40px; }

.site-header {
  background: linear-gradient(135deg, #07111f 0%, #0b1220 50%, #0d1d1a 100%);
  color: var(--sx-white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.topbar {
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}
.topbar-inner,
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}
.branding {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
}
.site-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.site-description { color: rgba(255,255,255,.72); font-size: 14px; }
.logo-wrap img { max-height: 56px; width: auto; }

.menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.main-navigation li { position: relative; }
.main-navigation a {
  font-weight: 700;
  font-size: 15px;
  color: rgba(255,255,255,.95);
}
.main-navigation .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #0f172a;
  display: none;
  padding: 10px;
  border-radius: 14px;
  box-shadow: var(--sx-shadow);
}
.main-navigation li:hover > .sub-menu { display: block; }
.main-navigation .sub-menu li { margin: 0; }
.main-navigation .sub-menu a { display: block; padding: 10px 12px; }

.header-search form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.header-search input {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 12px 14px;
  width: 230px;
  outline: none;
}
.header-search button {
  border: 0;
  background: var(--sx-accent);
  color: #fff;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.breaking-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.breaking-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
}
.breaking-label {
  background: var(--sx-danger);
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
}
.breaking-links {
  display: flex;
  gap: 14px;
  overflow: auto;
  white-space: nowrap;
}
.breaking-links a { color: #111827; font-weight: 700; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 24px;
  margin-bottom: 28px;
}
.card {
  background: #fff;
  border-radius: var(--sx-radius);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  border: 1px solid #eef2f7;
}
.hero-main {
  min-height: 470px;
  position: relative;
}
.hero-main .thumb,
.hero-side .thumb,
.post-card .thumb,
.list-post .thumb {
  position: relative;
  overflow: hidden;
}
.hero-main img,
.hero-side img,
.post-card img,
.list-post img { width: 100%; height: 100%; object-fit: cover; }
.hero-main .thumb { height: 470px; }
.hero-side .thumb { height: 220px; }
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.78));
}
.category-badge {
  display: inline-block;
  background: var(--sx-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hero-title,
.overlay h2,
.overlay h3 {
  color: #fff;
  margin: 10px 0 8px;
  line-height: 1.12;
}
.hero-title { font-size: clamp(28px, 4vw, 44px); }
.overlay h3 { font-size: 22px; }
.meta { color: var(--sx-muted); font-size: 14px; }
.overlay .meta { color: rgba(255,255,255,.8); }
.excerpt { color: #4b5563; }
.overlay .excerpt { color: rgba(255,255,255,.88); }
.hero-side { display: grid; gap: 24px; }
.hero-side .card { height: 223px; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}
.section-title h2,
.section-title h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}
.section-title .more-link {
  color: var(--sx-accent);
  font-weight: 800;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-card .thumb { height: 220px; }
.post-card-content { padding: 18px; }
.post-card h3 { margin: 10px 0; font-size: 21px; line-height: 1.24; }

.category-block { margin-top: 34px; }
.category-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}
.list-posts { display: grid; gap: 18px; }
.list-post {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
}
.list-post .thumb { height: 95px; border-radius: 14px; }
.list-post h4 { margin: 6px 0; font-size: 18px; line-height: 1.28; }

.sidebar { display: grid; gap: 20px; }
.widget {
  background: #fff;
  border-radius: var(--sx-radius);
  padding: 20px;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
  border: 1px solid #eef2f7;
}
.widget-title {
  margin: 0 0 16px;
  font-size: 20px;
}
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.widget li { border-bottom: 1px solid #eef2f7; padding-bottom: 12px; }
.widget li:last-child { border-bottom: 0; padding-bottom: 0; }

.archive-head,
.page-head {
  background: linear-gradient(135deg,#07111f 0%,#16332c 100%);
  color: #fff;
  padding: 34px 0;
  margin-bottom: 24px;
}
.archive-head h1,
.page-head h1 { margin: 0 0 8px; font-size: clamp(28px,4vw,42px); }
.breadcrumbs { color: rgba(255,255,255,.74); font-size: 14px; }

.main-loop { display: grid; gap: 22px; }
.loop-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  background: #fff;
  border-radius: var(--sx-radius);
  overflow: hidden;
  border: 1px solid #eef2f7;
  box-shadow: 0 10px 20px rgba(15,23,42,.04);
}
.loop-card .thumb { height: 100%; min-height: 220px; }
.loop-card-content { padding: 22px; }
.loop-card h2 { margin: 10px 0; font-size: 28px; line-height: 1.18; }

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}
.single-article {
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  border: 1px solid #eef2f7;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}
.single-article h1 { margin: 12px 0 14px; font-size: clamp(30px,4vw,48px); line-height: 1.1; }
.single-thumb { margin: 20px 0 24px; border-radius: 18px; overflow: hidden; }
.single-article p { font-size: 18px; color: #374151; }
.entry-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 14px;
  color: #6b7280;
}
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-list a {
  background: #eef6f0;
  color: #166534;
  padding: 7px 11px;
  border-radius: 999px;
  font-weight: 700;
}

.pagination,
.posts-navigation .nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.page-numbers,
.posts-navigation a {
  background: #fff;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-weight: 700;
}
.page-numbers.current { background: var(--sx-accent); color: #fff; border-color: var(--sx-accent); }

.site-footer {
  background: #07111f;
  color: rgba(255,255,255,.86);
  margin-top: 40px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  padding: 36px 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0 26px;
  color: rgba(255,255,255,.64);
  font-size: 14px;
}
.footer-brand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }

.comment-respond,
.comments-area { margin-top: 30px; }
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}
button,
input[type="submit"],
.wp-block-search__button {
  border: 0;
  background: var(--sx-accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .hero-grid,
  .content-grid,
  .single-layout,
  .category-layout { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .navbar { align-items: flex-start; }
  .main-navigation {
    display: none;
    width: 100%;
    padding-top: 12px;
  }
  .main-navigation.active { display: block; }
  .main-navigation ul { flex-direction: column; align-items: flex-start; gap: 10px; }
  .main-navigation .sub-menu { position: static; display: block; padding: 8px 0 0 14px; box-shadow: none; background: transparent; }
  .header-search { width: 100%; }
  .header-search input { width: 100%; }
  .breaking-inner { grid-template-columns: 1fr; }
  .post-grid,
  .footer-widgets { grid-template-columns: 1fr; }
  .loop-card,
  .list-post { grid-template-columns: 1fr; }
  .loop-card .thumb,
  .list-post .thumb { min-height: 220px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 22px), var(--sx-container)); }
  .site-title { font-size: 22px; }
  .hero-main .thumb { height: 340px; }
  .hero-side .thumb,
  .post-card .thumb,
  .loop-card .thumb,
  .list-post .thumb { height: 220px; }
  .single-article { padding: 18px; }
  .single-article p { font-size: 17px; }
}
