/*
Theme Name: Dark Professional
Theme URI: https://techturkiye.com
Author: Tech Turkiye
Author URI: https://techturkiye.com
Siyah ve gri tonlarda, profesyonel ve modern bir koyu tema.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dark-professional
Tags: dark, black, gray, blog, portfolio, business, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   CSS Variables - Dark Professional Palette
   ========================================================================== */
:root {
  --color-bg: #0b0b0d;
  --color-bg-elevated: #121216;
  --color-bg-card: #16161a;
  --color-bg-hover: #1c1c22;
  --color-border: #2a2a32;
  --color-border-subtle: #222228;
  --color-text: #e8e8ed;
  --color-text-secondary: #a0a0ab;
  --color-text-muted: #6b6b76;
  --color-accent: #6b8aff;
  --color-accent-hover: #8aa4ff;
  --color-accent-soft: rgba(107, 138, 255, 0.12);
  --color-success: #4ade80;
  --color-warning: #fbbf24;
  --color-danger: #f87171;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
  --transition: 0.2s ease;
  --content-width: 780px;
  --wide-width: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* ========== Single Post Kart Görünümü ========== */
.singular .content-area article,
.single .content-area article,
.page .content-area article {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}

/* Featured image - biraz küçültülmüş + otomatik resize */
.single-featured {
  margin: -2rem -2.25rem 1.75rem -2.25rem; /* kartın kenarlarına yapışsın */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  max-height: 380px;          /* maksimum yükseklik */
}

.single-featured img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;          /* orantılı kırpma */
  display: block;
}

/* Başlık ile featured arası boşluk ayarı */
.singular .entry-header {
  margin-top: 0;
}

/* Mobilde padding azalt */
@media (max-width: 600px) {
  .singular .content-area article,
  .single .content-area article,
  .page .content-area article {
    padding: 1.35rem 1.25rem;
  }

  .single-featured {
    margin: -1.35rem -1.25rem 1.25rem -1.25rem;
    max-height: 240px;
  }

  .single-featured img {
    max-height: 240px;
  }
}


h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin: 0 0 1.25em;
}

ul, ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.35em;
}

/* Yatay kart (ana sayfa / arşiv) */
.post-card-horizontal {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.post-card-horizontal:hover {
  border-color: #3a3a45;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-thumbnail-horizontal {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.post-thumbnail-horizontal img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-card-horizontal:hover .post-thumbnail-horizontal img {
  transform: scale(1.04);
}

.post-card-horizontal .post-card-content {
  flex: 1;
  padding: 0;
  min-width: 0;
}

/* Single sayfa featured image */
.single-featured {
  margin-bottom: 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.single-featured img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobil uyum */
@media (max-width: 600px) {
  .post-card-horizontal {
    flex-direction: column;
  }
  .post-thumbnail-horizontal,
  .post-thumbnail-horizontal img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}


blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-elevated);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--color-border-subtle);
}

pre {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25em;
  overflow-x: auto;
  margin: 1.5em 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: 2.5em 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(18, 18, 22, 0.85);
}

.header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

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

.site-description {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: none;
}

@media (min-width: 768px) {
  .site-description {
    display: block;
  }
}

.custom-logo-link img {
  max-height: 42px;
  width: auto;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-collapse {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

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

.header-search .search-form {
  display: flex;
  width: 100%;
  gap: 0.4rem;
}

.header-search .search-form label {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.header-search .search-field {
  width: 100%;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

.header-search .search-submit {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--color-text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--color-text);
  background: var(--color-bg-hover);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }

  .nav-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
  }

  .main-navigation.toggled .nav-collapse {
    display: flex;
  }

  .nav-collapse ul {
    order: 1;
    flex-direction: column;
    width: 100%;
  }

  .header-search {
    order: 2;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border-subtle);
  }

  .header-search .search-form {
    display: flex;
    width: 100%;
    gap: 0.5rem;
  }

  .header-search .search-form label {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-search .search-field {
    width: 100%;
  }
  .header-search .search-submit {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Content area */
.site-content {
  flex: 1;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

.content-area {
  max-width: var(--content-width);
}

/* When sidebar present */
.has-sidebar .site-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .has-sidebar .site-content {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Posts & Cards
   ========================================================================== */
.posts-grid {
  display: grid;
  gap: 1.75rem;
}

.post-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
  border-color: #3a3a45;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card .post-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-elevated);
}

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

.post-card:hover .post-thumbnail img {
  transform: scale(1.03);
}

.post-card-content {
  padding: 1.35rem 1.5rem 1.5rem;
}

.post-card .entry-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-card .entry-title a {
  color: var(--color-text);
}

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

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.entry-meta a {
  color: var(--color-text-secondary);
}

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

.entry-summary {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.entry-summary p:last-child {
  margin-bottom: 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
}

.read-more:hover {
  gap: 0.5rem;
}

/* Single post / page */
.single .entry-header,
.page .entry-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.single .entry-title,
.page .entry-title {
  margin-bottom: 0.75rem;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.75em;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.entry-footer a {
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */
.widget-area {
  position: sticky;
  top: 5.5rem;
}

.widget {
  background: var(--color-bg-card);
  border: none;                    /* kenar çizgisini kaldırdık */
  border-radius: var(--radius-lg);
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  box-shadow: none;                /* gölge de varsa kaldır */
}
.widget-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);  /* çok hafif çizgi */
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  margin: 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  display: block;
  padding: 0.55rem 0;
  color: var(--color-text-secondary);
  font-size: 0.925rem;
}

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

.widget input[type="search"],
.widget input[type="text"],
.widget input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.9rem;
}

.widget input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.comment {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.comment-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.comment-content {
  font-size: 0.95rem;
}

.comment-reply-link {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Comment form */
.comment-respond {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.comment-reply-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.comment-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Buttons */
.button,
button,
input[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background: var(--color-accent);
  color: #f4f4f4 !important;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none !important;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.page-numbers,
.nav-previous a,
.nav-next a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.page-numbers:hover,
.nav-previous a:hover,
.nav-next a:hover,
.page-numbers.current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0b0b0d;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.site-info {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.site-info a {
  color: var(--color-text-secondary);
}

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

.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-menu a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

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

/* ==========================================================================
   Utilities & WordPress specifics
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5em;
}

/* Gutenberg / Block editor compatibility */
.wp-block-image img {
  border-radius: var(--radius-md);
}

.wp-block-quote {
  border-left-color: var(--color-accent);
}

.wp-block-code {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.wp-block-separator {
  border-color: var(--color-border);
}

/* Search form in header / general */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form .search-field {
  flex: 1;
  padding: 0.6rem 0.9rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.search-form .search-submit {
  padding: 0.6rem 1rem;
}

/* 404 */
.error-404 {
  text-align: center;
  padding: 4rem 1rem;
}

.error-404 h1 {
  font-size: 4rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* Archive title */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: 1.75rem;
}

.archive-description {
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
}

/* Sticky post indicator */
.sticky .post-card {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent-soft);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .widget-area,
  .menu-toggle {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ========== 1 Büyük + 4 Küçük (Hizalı) ========== */
.featured-block {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 2.5rem;
}

/* Büyük alan */
.feat-big {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-elevated);
  height: 100%;
  min-height: 400px;
}

.feat-big .feat-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.feat-big .feat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.feat-big:hover .feat-img {
  transform: scale(1.03);
}

.feat-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.4rem 1.3rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.feat-big .feat-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* 4 küçük - 2x2 grid, büyükle aynı yükseklik */
.feat-smalls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 100%;
}

.feat-small {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-elevated);
  min-height: 0;
}

.feat-small .feat-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.feat-small .feat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.feat-small:hover .feat-img {
  transform: scale(1.04);
}

.feat-small .feat-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tablet */
@media (max-width: 900px) {
  .featured-block {
    grid-template-columns: 1fr;
  }
  .feat-big {
    min-height: 260px;
    aspect-ratio: 16 / 9;
  }
  .feat-smalls {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
}

/* Mobil */
@media (max-width: 520px) {
  .featured-block {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .feat-smalls {
    gap: 0.75rem;
    grid-auto-rows: 140px;
  }
  .feat-small .feat-title {
    font-size: 0.72rem;
    padding: 0.65rem 0.6rem;
  }
}

/* Öne Çıkanlar - eski kompakt görünüm zorla */
.featured-posts-widget {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.featured-post-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.7rem 0 !important;
  border-bottom: 1px solid var(--color-border-subtle) !important;
}

.featured-post-item:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.featured-thumb {
  flex-shrink: 0 !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: block !important;
}

.featured-thumb img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  display: block !important;
}

.featured-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.featured-title {
  display: block !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: var(--color-text) !important;
}

.featured-title:hover {
  color: var(--color-accent) !important;
}

/* Mobilde sidebar ve featured alanını gizle */
@media (max-width: 767px) {
  .widget-area,
  .featured-block {
    display: none !important;
  }
}