/*
Theme Name: Çağlar Demiral
Theme URI: https://caglardemiral.com
Author: Çağlar Demiral
Author URI: https://caglardemiral.com
Description: Çağlar Demiral kişisel marka için custom WordPress teması. Acid Lime + Hot Pink palet, Fraunces + Inter tipografi, ana siteyle bütünleşik tasarım.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caglardemiral
*/

/* === MARKA RENKLERİ === */
:root {
  --lime: #B8E910;
  --lime-dark: #9BC70D;
  --lime-ink: #1a1f00;
  --pink: #FF4D8D;
  --pink-dark: #E63A77;
  --electric: #5B5BFF;
  --ink: #0A0A0A;
  --paper: #FAFAF7;
  --stone: #E8E8E0;
  --muted-dark: #888888;
  --muted-light: #666666;
}

/* === TEMEL RESET === */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === SEÇİM === */
::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

/* === TİPOGRAFİ === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--lime-dark);
}

em, i {
  font-style: italic;
}

strong, b {
  font-weight: 600;
}

ul, ol {
  margin: 0 0 1em 1.5em;
}
li {
  margin-bottom: 0.4em;
}

blockquote {
  border-left: 3px solid var(--lime);
  padding-left: 24px;
  margin: 24px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.25em;
  color: var(--ink);
}

code {
  font-family: 'Courier New', monospace;
  background: var(--stone);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  background: var(--ink);
  color: var(--paper);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1em;
}
pre code {
  background: transparent;
  color: var(--paper);
  padding: 0;
}

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

figure {
  margin: 24px 0;
}
figcaption {
  font-size: 0.85em;
  color: var(--muted-light);
  text-align: center;
  margin-top: 8px;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 64px; }
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 0;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-brand {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
}
@media (min-width: 768px) {
  .site-brand { font-size: 22px; }
}
.site-nav {
  display: none;
  gap: 32px;
}
@media (min-width: 768px) {
  .site-nav { display: flex; }
}
.site-nav a {
  font-size: 14px;
  color: rgba(250, 250, 247, 0.75);
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--paper);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: none;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(250, 250, 247, 0.75);
  font-weight: 500;
}
@media (min-width: 640px) {
  .lang-switch { display: block; }
}
.cta-button {
  background: var(--lime);
  color: var(--lime-ink);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.cta-button:hover {
  background: var(--lime-dark);
  color: var(--lime-ink);
}
@media (min-width: 768px) {
  .cta-button { font-size: 14px; padding: 10px 18px; }
}

/* === BLOG HERO === */
.blog-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .blog-hero { padding: 200px 0 120px; }
}
.blog-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted-dark);
  margin-bottom: 24px;
}
.blog-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.blog-hero h1 em {
  color: var(--lime);
  font-style: italic;
}
.blog-hero .subtitle {
  font-size: 17px;
  color: rgba(250, 250, 247, 0.7);
  max-width: 600px;
  line-height: 1.65;
}
@media (min-width: 768px) {
  .blog-hero .subtitle { font-size: 18px; }
}

/* === BLOG GRID === */
.blog-section {
  padding: 80px 0;
  background: var(--paper);
}
@media (min-width: 768px) {
  .blog-section { padding: 120px 0; }
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted-light);
  font-weight: 500;
  margin-bottom: 48px;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 32px;
  }
}
@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 64px 40px;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
}
.post-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--stone);
  margin-bottom: 20px;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-image img {
  transform: scale(1.04);
}
.post-card-meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  margin-bottom: 12px;
}
.post-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.post-card h2 a {
  color: var(--ink);
}
.post-card h2 a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.post-card-excerpt {
  font-size: 15px;
  color: rgba(10, 10, 10, 0.7);
  line-height: 1.6;
  margin-bottom: 16px;
}
.post-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s;
}
.post-card-link:hover {
  gap: 10px;
}

/* === SINGLE POST === */
.single-post-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 160px 0 80px;
}
@media (min-width: 768px) {
  .single-post-hero { padding: 200px 0 100px; }
}
.single-post-hero .container {
  max-width: 820px;
}
.single-post-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted-dark);
  margin-bottom: 24px;
}
.single-post-hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper);
}
.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
  color: rgba(250, 250, 247, 0.7);
}
.single-post-meta strong {
  color: var(--paper);
  font-weight: 500;
}

.single-post-cover {
  background: var(--paper);
  padding: 0;
}
.single-post-cover .container {
  max-width: 1100px;
}
.single-post-cover img {
  width: 100%;
  border-radius: 12px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.single-post-content {
  background: var(--paper);
  padding: 60px 0 100px;
}
.single-post-content .container {
  max-width: 720px;
}
.single-post-content p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 1.4em;
  color: rgba(10, 10, 10, 0.85);
}
.single-post-content h2 {
  font-size: 2rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
}
.single-post-content h3 {
  font-size: 1.5rem;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.single-post-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.single-post-content a:hover {
  color: var(--lime-dark);
}
.single-post-content ul, .single-post-content ol {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 1.4em;
}
.single-post-content img {
  border-radius: 8px;
  margin: 24px 0;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--stone);
}
.pagination a, .pagination span {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}
.pagination a {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stone);
}
.pagination a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pagination .current {
  background: var(--lime);
  color: var(--lime-ink);
}

/* === FOOTER === */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--stone);
  padding: 64px 0;
}
@media (min-width: 768px) {
  .site-footer { padding: 80px 0; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 64px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 5fr 3fr 4fr;
    gap: 32px;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.footer-brand-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}
@media (min-width: 768px) {
  .footer-brand-name { font-size: 28px; }
}
.footer-stamp {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-stamp svg {
  width: 100%;
  height: 100%;
  animation: spin-reverse 30s linear infinite;
}
.footer-stamp-text {
  position: absolute;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
.footer-tagline {
  font-size: 14px;
  color: var(--muted-light);
  margin-bottom: 4px;
}
.footer-origin {
  font-size: 12px;
  color: var(--muted-light);
  letter-spacing: 0.02em;
}
.footer-section-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted-light);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list li {
  margin-bottom: 8px;
}
.footer-list a {
  font-size: 14px;
  color: rgba(10, 10, 10, 0.75);
}
.footer-list a:hover {
  color: var(--ink);
}
.footer-bottom {
  border-top: 1px solid var(--stone);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}
.footer-copyright {
  font-size: 12px;
  color: var(--muted-light);
}
.footer-lang-switch {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink);
  font-weight: 500;
}

/* === FLOATING WHATSAPP === */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.floating-whatsapp.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-whatsapp:hover {
  background: #1ebe5a;
  color: white;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: white;
}
@media (min-width: 768px) {
  .floating-whatsapp {
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
  }
  .floating-whatsapp svg {
    width: 32px;
    height: 32px;
  }
}
.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.2;
  z-index: -1;
}

@keyframes ping {
  75%, 100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
@keyframes spin-reverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* === BREADCRUMBS / BACK LINK === */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(250, 250, 247, 0.7);
  margin-bottom: 32px;
}
.back-to-blog:hover {
  color: var(--paper);
}

/* === 404 === */
.error-404 {
  background: var(--ink);
  color: var(--paper);
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
}
.error-404 h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 500;
  margin-bottom: 16px;
}
.error-404 h1 em {
  color: var(--pink);
  font-style: italic;
}
.error-404 p {
  font-size: 18px;
  color: rgba(250, 250, 247, 0.7);
  margin-bottom: 32px;
  max-width: 500px;
}

/* === SEARCH === */
.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--stone);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--paper);
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--lime);
}
.search-form button {
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.search-form button:hover {
  background: var(--lime);
  color: var(--lime-ink);
}

/* === COMMENTS === */
.comments-area {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 48px 0 0;
  border-top: 1px solid var(--stone);
}
.comments-title {
  font-size: 1.5rem;
  margin-bottom: 32px;
}
.comment-list {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
}
.comment {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--stone);
}
.comment-author {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.comment-date {
  font-size: 12px;
  color: var(--muted-light);
  margin-bottom: 12px;
}
