/*
Theme Name: Cosmos Dark
Theme URI: https://example.com
Author: Uzay Gezgini
Author URI: https://example.com
Description: Derin uzay estetiğine sahip liste tasarımlı karanlık WordPress teması.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: cosmos-dark
*/

:root {
  --bg-deep-space: #07080d;
  --bg-card: rgba(18, 22, 38, 0.75);
  --bg-card-border: rgba(99, 102, 241, 0.2);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --neon-cyan: #00f0ff;
  --neon-purple: #a855f7;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-deep-space);
  background-image: 
    radial-gradient(at 15% 15%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(0, 240, 255, 0.12) 0px, transparent 50%),
    radial-gradient(ellipse at center, rgba(15, 23, 42, 0.8) 0%, #07080d 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 960px; /* Liste formatı için en ideal genişlik */
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  background: rgba(7, 8, 13, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
}

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

.site-title a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.site-title a span {
  color: var(--neon-cyan);
}

.main-navigation ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

.main-navigation a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

/* Liste Görünümü (Posts List) */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px 0;
}

.post-list-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-list-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.15);
}

/* Görsel Alanı - Sabit, Nizami ve Orantılı Boyutlandırma */
.post-thumb-box {
  flex: 0 0 280px; /* Sabit Genişlik */
  width: 280px;
  height: 185px;  /* Sabit Yükseklik */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
}

.cosmos-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Resmi ezmeden/esnetmeden merkeze kırparak kutuyu doldurur */
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.post-list-card:hover .cosmos-thumb-img {
  transform: scale(1.06);
}

/* Yazı İçerik Kutusu */
.post-content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-content-box h2 a {
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1.4;
  transition: color 0.2s;
}

.post-content-box h2 a:hover {
  color: var(--neon-cyan);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 8px 0 12px 0;
}

.post-excerpt {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Açıklamayı 2 satırda tutar, nizam bozulmaz */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  margin-top: auto;
  align-self: flex-start;
  color: var(--neon-cyan);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Tekil Yazı Sayfası */
.single-post-wrapper {
  margin: 40px auto;
  background: var(--bg-card);
  padding: 35px;
  border-radius: 16px;
  border: 1px solid var(--bg-card-border);
}

.single-featured-box {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
}

.single-post-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.single-post-wrapper h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #fff, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.entry-content {
  margin-top: 25px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

/* Sayfalama */
.cosmos-pagination {
  margin: 50px 0;
  display: flex;
  justify-content: center;
}

.cosmos-pagination .nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cosmos-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cosmos-pagination .page-numbers:hover {
  color: #fff;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.cosmos-pagination .page-numbers.current {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(0, 240, 255, 0.4));
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 60px;
}

/* Mobil Uyum (Responsive) */
@media (max-width: 768px) {
  .post-list-card {
    flex-direction: column;
    align-items: stretch;
  }
  
  .post-thumb-box {
    width: 100%;
    height: 200px;
    flex: auto;
  }
}