/*
Theme Name: Verge Style
Theme URI: https://github.com/verge-style
Author: Custom Theme
Author URI: #
Description: The Verge tarzı modern teknoloji haber teması. Bold tipografi, kırmızı aksanlar ve editorial layout ile.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verge-style
Tags: news, technology, magazine, responsive, custom-header, custom-menu
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #FF2D20;
    --red-dark: #CC2419;
    --black: #0A0A0A;
    --dark: #1A1A1A;
    --gray-900: #111111;
    --gray-800: #222222;
    --gray-700: #333333;
    --gray-600: #555555;
    --gray-500: #777777;
    --gray-400: #999999;
    --gray-300: #BBBBBB;
    --gray-200: #DDDDDD;
    --gray-100: #F0F0F0;
    --white: #FFFFFF;
    --bg: #FAFAFA;

    --font-display: 'Barlow Condensed', 'Impact', sans-serif;
    --font-body: 'Source Serif 4', 'Georgia', serif;
    --font-ui: 'DM Sans', 'Helvetica Neue', sans-serif;

    --max-width: 1280px;
    --content-width: 740px;
    --sidebar-width: 320px;

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--black);
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.entry-content p,
.entry-content li {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 2.5rem 0 1rem;
    color: var(--black);
}

.entry-content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    margin: 2rem 0 0.75rem;
}

.entry-content a {
    color: var(--red);
    border-bottom: 1px solid rgba(255,45,32,0.3);
    transition: border-color var(--transition);
}

.entry-content a:hover {
    border-color: var(--red);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    padding: 40px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--red);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 32px;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 1;
}

.site-title span {
    color: var(--red);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

/* Primary Navigation */
.main-navigation {
    flex: 1;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.main-navigation a {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-300);
    padding: 6px 12px;
    border-radius: 2px;
    transition: all var(--transition);
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* Header Search */
.header-search {
    flex-shrink: 0;
    margin-left: 16px;
    position: relative;
}

.header-search form {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    overflow: visible;
}

.header-search input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    border-right: none;
    color: var(--white);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    padding: 8px 14px;
    width: 0;
    max-width: 0;
    opacity: 0;
    outline: none;
    transition: width 0.3s ease, max-width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    border-radius: 3px 0 0 3px;
}

.header-search.is-open input {
    width: 220px;
    max-width: 220px;
    opacity: 1;
    padding: 8px 14px;
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.35);
}

.header-search button {
    background: var(--red);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 3px;
    transition: background var(--transition);
}

.header-search.is-open button {
    border-radius: 0 3px 3px 0;
}

.header-search button:hover {
    background: var(--red-dark);
}

.header-search button svg {
    width: 16px;
    height: 16px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    pointer-events: none;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; align-items: center; }
    .main-navigation { display: none; }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; padding: 16px 0; }
    .header-search { display: none; }
}

/* ============================================
   CATEGORY BAR
   ============================================ */
.category-bar {
    background: var(--dark);
    border-bottom: 1px solid var(--gray-800);
}

.category-bar .container {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-bar::-webkit-scrollbar { display: none; }

.category-bar a {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    padding: 10px 16px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.category-bar a:hover,
.category-bar a.active {
    color: var(--white);
    border-bottom-color: var(--red);
}

/* ============================================
   HERO / FEATURED SECTION
   ============================================ */
.hero-section {
    background: var(--black);
    margin-bottom: 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
    background: var(--gray-800);
}

.hero-main {
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
}

.hero-main .post-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

.hero-main .post-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
}

.hero-secondary {
    background: var(--dark);
    display: flex;
    flex-direction: column;
}

.hero-secondary .mini-post {
    flex: 1;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0;
    overflow: hidden;
    background: var(--dark);
    transition: background var(--transition);
    border-bottom: 1px solid var(--gray-800);
}

.hero-secondary .mini-post:last-child {
    border-bottom: none;
}

.hero-secondary .mini-post:hover {
    background: var(--gray-800);
}

.hero-secondary .mini-post-thumbnail {
    overflow: hidden;
}

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

.hero-secondary .mini-post:hover .mini-post-thumbnail img {
    transform: scale(1.08);
}

.hero-secondary .mini-post-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .hero-main { grid-row: 1; }
    .hero-secondary { display: none; }
}

/* ============================================
   POST META / LABELS
   ============================================ */
.category-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--white);
    background: var(--red);
    padding: 3px 8px;
    margin-bottom: 8px;
}

.post-meta {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-meta .author {
    color: var(--gray-200);
    font-weight: 600;
}

.post-meta .author:hover {
    color: var(--red);
}

.post-meta .sep {
    color: var(--gray-700);
}

/* ============================================
   POST CARDS
   ============================================ */
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

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

.post-card .post-thumbnail {
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--gray-100);
    flex-shrink: 0;
    width: 100%;
}

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

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

.post-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--black);
}

.post-card-title a {
    color: inherit;
    transition: color var(--transition);
}

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

.post-card-excerpt {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--gray-600);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--black);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--red);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--black);
}

.section-link {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.section-link:hover {
    gap: 8px;
}

/* ============================================
   MAIN FEED GRID
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
}

/* Large feature post */
.posts-grid .post-card.large {
    grid-column: 1 / -1;
    grid-template-columns: 1.4fr 1fr;
}

.posts-grid .post-card.large .post-thumbnail {
    aspect-ratio: auto;
    height: 100%;
    min-height: 240px;
}

@media (max-width: 700px) {
    .posts-grid .post-card.large {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HORIZONTAL POST LIST
   ============================================ */
.post-list-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
    margin-bottom: 12px;
}

.post-list-item:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-sm);
}

.post-list-item .post-thumbnail {
    overflow: hidden;
}

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

.post-list-item:hover .post-thumbnail img {
    transform: scale(1.08);
}

.post-list-item .post-list-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-list-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 6px;
    color: var(--black);
}

.post-list-title a {
    color: inherit;
    transition: color var(--transition);
}

.post-list-title a:hover {
    color: var(--red);
}

/* ============================================
   SIDEBAR
   ============================================ */
.widget-area {
    /* sticky is applied per-context below */
}

.widget {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 20px;
    margin-bottom: 24px;
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--black);
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--black);
    position: relative;
}

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

.widget ul {
    list-style: none;
}

.widget ul li {
    border-bottom: 1px solid var(--gray-100);
    padding: 8px 0;
}

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

.widget ul li a {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: color var(--transition);
}

.widget ul li a:hover {
    color: var(--red);
}

/* Newsletter Widget */
.widget-newsletter {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.widget-newsletter .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.15);
}

.widget-newsletter .widget-title::after {
    background: var(--red);
}

.newsletter-desc {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.55);
    margin-bottom: 14px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-form input {
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input:focus {
    border-color: var(--red);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.newsletter-form button {
    padding: 10px 12px;
    background: var(--red);
    border: none;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: var(--red-dark);
}

/* Tag Cloud Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-cloud a {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tag-cloud a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Popular List Widget */
.popular-list {
    display: flex;
    flex-direction: column;
}

.popular-list-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: start;
}

.popular-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-rank {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gray-200);
    line-height: 1;
    margin-top: 2px;
}

.popular-list-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.popular-list-cat {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    text-decoration: none;
}

.popular-list-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--black);
    text-decoration: none;
    transition: color 0.15s;
}

.popular-list-title:hover {
    color: var(--red);
}

.popular-list-date {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    color: var(--gray-400);
}



/* ============================================
   SINGLE POST
   ============================================ */
/* Single post header - now inside container column */
.single-post-header-inner {
    background: var(--black);
    color: var(--white);
    padding: 28px 24px 24px;
    margin-bottom: 0;
}

.single-kicker {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.single-post-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.0;
    color: var(--white);
    margin-bottom: 16px;
    max-width: 900px;
}

.single-post-deck {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--gray-300);
    margin-bottom: 24px;
    max-width: 680px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--gray-800);
    flex-wrap: wrap;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-700);
}

.author-name {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
}

.author-name a:hover {
    color: var(--red);
}

.post-date {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--gray-500);
}

.hero-image-wrap {
    margin: 0;
    overflow: hidden;
    max-height: 560px;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--gray-500);
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 32px;
}

/* Article body wrapper */
.article-body {
    padding: 0;
    margin: 0;
}

/* Single hero image - constrained to article column */
.single-hero-img {
    overflow: hidden;
    margin-bottom: 0;
}

.single-hero-img img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: border-color 0.2s;
}

.post-nav-link:hover {
    border-color: var(--red);
}

.post-nav-link--next {
    text-align: right;
}

.post-nav-label {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
}

.post-nav-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--black);
}

/* Share bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 40px;
}

.share-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-right: 4px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 3px;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
}

.share-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--black);
}

.share-btn.twitter:hover { background: #E7F5FE; border-color: #1DA1F2; color: #1DA1F2; }
.share-btn.facebook:hover { background: #EEF2FF; border-color: #4267B2; color: #4267B2; }

/* ============================================
   TAGS
   ============================================ */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0;
}

.post-tags a {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 5px 12px;
    border-radius: 2px;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.post-tags a:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
    border-top: 3px solid var(--black);
    padding-top: 40px;
    margin-top: 60px;
}

.related-posts .section-title {
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 700px) {
    .related-grid { grid-template-columns: 1fr; }
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
.breaking-ticker {
    background: var(--red);
    color: var(--white);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
}

.ticker-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(0,0,0,0.3);
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 500;
}

.ticker-content a {
    color: var(--white);
    padding: 0 32px;
    transition: opacity var(--transition);
}

.ticker-content a:hover {
    opacity: 0.75;
}

.ticker-content a::after {
    content: '•';
    margin-left: 32px;
    opacity: 0.5;
}

@keyframes ticker {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 48px 0;
}

.pagination a,
.pagination span {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.pagination .current {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--black);
    color: var(--gray-300);
    margin-top: 80px;
    border-top: 3px solid var(--red);
}

.footer-top {
    padding: 48px 0 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
}

@media (max-width: 600px) {
    .footer-top { flex-direction: column; gap: 32px; }
}

.footer-brand .site-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-desc {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gray-800);
    color: var(--gray-400);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--red);
    color: var(--white);
}

.footer-widget-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-800);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    padding: 5px 0;
}

.footer-widget ul li a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--gray-500);
    transition: color var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--gray-600);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--gray-600);
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--red);
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-header {
    background: var(--black);
    padding: 40px 0;
    margin-bottom: 40px;
    color: var(--white);
}

.search-form-large {
    display: flex;
    max-width: 600px;
    gap: 0;
    margin-top: 20px;
}

.search-form-large input {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font-ui);
    font-size: 1rem;
    border: 2px solid var(--gray-700);
    background: var(--dark);
    color: var(--white);
    outline: none;
    transition: border-color var(--transition);
}

.search-form-large input:focus {
    border-color: var(--red);
}

.search-form-large button {
    padding: 14px 24px;
    background: var(--red);
    border: 2px solid var(--red);
    color: var(--white);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background var(--transition);
}

.search-form-large button:hover {
    background: var(--red-dark);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 120px 24px;
}

.error-404 .error-code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 800;
    color: var(--gray-100);
    line-height: 1;
    margin-bottom: -20px;
}

.error-404 h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    color: var(--black);
}

.error-404 p {
    font-family: var(--font-ui);
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* ============================================
   UTILITIES
   ============================================ */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.no-results {
    text-align: center;
    padding: 80px 24px;
    color: var(--gray-500);
}

/* Responsive images */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 24px auto; }

/* ============================================
   DARK MODE
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0E0E0E;
        --white: #1A1A1A;
        --black: #F0F0F0;
        --gray-100: #222222;
        --gray-200: #2A2A2A;
        --gray-300: #444444;
        --gray-400: #666666;
        --gray-500: #888888;
        --gray-600: #AAAAAA;
        --gray-700: #CCCCCC;
        --gray-800: #E0E0E0;
        --gray-900: #F5F5F5;
    }
}

/* ============================================
   POPULAR POSTS SECTION (Ana Sayfa Üst Grid)
   ============================================ */
.popular-section {
    background: var(--black);
    color: var(--white);
    padding: 0;
    margin-bottom: 0;
    border-bottom: 3px solid var(--red);
}

.popular-section-inner {
    display: flex;
    align-items: stretch;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.popular-section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 14px 10px;
    white-space: nowrap;
    flex-shrink: 0;
    width: 36px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-width: 0;
    width: 100%;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.popular-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 12px 16px;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
}

.popular-card:hover {
    background: rgba(255,255,255,0.04);
}

.popular-card:last-child {
    border-right: none;
}

.popular-card-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(255,255,255,0.12);
    line-height: 1;
    margin-right: 12px;
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
}

.popular-card-img {
    display: block;
    width: 72px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    margin-right: 12px;
}

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

.popular-card:hover .popular-card-img img {
    transform: scale(1.06);
}

.popular-card-body {
    flex: 1;
    min-width: 0;
}

.popular-card-body .category-label {
    font-size: 0.6rem;
    margin-bottom: 4px;
    display: block;
}

.popular-card-title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.25;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-card-title a {
    color: var(--white);
    text-decoration: none;
}

.popular-card-title a:hover {
    color: var(--red);
}

.popular-card .post-meta {
    color: rgba(255,255,255,0.38);
    font-size: 0.68rem;
}

/* ============================================
   SINGLE POST - SIDEBAR LAYOUT
   ============================================ */
.single-content-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

.single-article-main {
    min-width: 0;
    overflow: hidden;
}

.single-article-main .entry-content img,
.single-article-main .entry-content video,
.single-article-main .entry-content iframe,
.single-article-main .entry-content figure {
    max-width: 100%;
    height: auto;
}

.single-content-area > .widget-area {
    position: sticky;
    top: 80px;
    min-width: 0;
    width: 300px;
}

/* Author bio box */
.author-bio-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    padding: 28px;
    background: var(--gray-100);
    margin: 40px 0;
    border-left: 3px solid var(--red);
}

/* ============================================
   SHARE BAR - BOTTOM VERSION
   ============================================ */
.share-bar-bottom {
    margin: 32px 0 40px;
    padding: 24px 0;
    border-top: 2px solid var(--black);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-bar-bottom .share-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--black);
    margin-right: 4px;
}

.share-bar-bottom .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 18px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}

.share-bar-bottom .share-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.share-bar-bottom .share-btn.twitter {
    background: #000;
    color: #fff;
}

.share-bar-bottom .share-btn.facebook {
    background: #1877F2;
    color: #fff;
}

.share-bar-bottom .share-btn.copy-link {
    background: var(--gray-100);
    color: var(--black);
    border: 1px solid var(--gray-300);
}

/* ============================================
   CATEGORY SECTIONS - TIGHTER MARGINS
   ============================================ */
.category-section {
    margin-top: 40px;
}

.posts-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.posts-grid-3 .post-card {
    margin-bottom: 0;
}

/* Override default post-card gap in category sections */
.category-section .posts-grid .post-card {
    margin-bottom: 0;
}

/* ============================================
   FOOTER - 3 COLUMN (brand + 2 widgets)
   ============================================ */
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding: 48px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   RESPONSIVE UPDATES
   ============================================ */
@media (max-width: 1024px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .popular-section-label {
        display: none;
    }
}

@media (max-width: 900px) {
    .single-content-area {
        grid-template-columns: 1fr;
    }
    .single-content-area .widget-area {
        display: none;
    }
}

@media (max-width: 768px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .popular-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .popular-card-img {
        width: 100%;
        height: 80px;
        margin-right: 0;
        margin-bottom: 8px;
    }
    .popular-card-num {
        display: none;
    }
    .posts-grid-3 {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .popular-grid {
        grid-template-columns: 1fr;
    }
}
