/* ==========================================================================
   H3World Custom Skin
   A distinctive design for Turkish global health news
   ========================================================================== */

:root {
    /* Primary Colors - Professional Blue */
    --h3-primary: #275097;           /* Deep professional blue */
    --h3-primary-dark: #1e3d75;
    --h3-primary-light: #3668bc;

    /* Secondary Colors - Natural Green */
    --h3-secondary: #87a048;          /* Olive/sage green */
    --h3-secondary-dark: #6b8038;
    --h3-secondary-light: #a3bc62;

    /* Accent Colors */
    --h3-accent: #275097;             /* Use primary as accent */
    --h3-accent-alt: #87a048;         /* Use secondary as alt accent */

    /* Alert Colors - Standard UI */
    --h3-danger: #2f94c6;             /* Accent blue */
    --h3-warning: #ffc107;            /* Standard amber */
    --h3-success: #28a745;            /* Standard green */
    --h3-info: #17a2b8;               /* Standard cyan */

    /* Neutrals */
    --h3-dark: #1a2332;               /* Near black with blue tint */
    --h3-gray-900: #2d3748;
    --h3-gray-700: #4a5568;
    --h3-gray-500: #718096;
    --h3-gray-300: #cbd5e0;
    --h3-gray-100: #f7fafc;
    --h3-white: #ffffff;

    /* Category Colors */
    --h3-cat-haberler: #275097;
    --h3-cat-konular: #87a048;
    --h3-cat-bolgeler: #6366f1;
    --h3-cat-kurumlar: #2f94c6;
    --h3-cat-veri: #17a2b8;
    --h3-cat-gorus: #f59e0b;
    --h3-cat-etkinlikler: #8b5cf6;

    /* Spacing */
    --h3-radius-sm: 4px;
    --h3-radius-md: 8px;
    --h3-radius-lg: 12px;
    --h3-radius-xl: 20px;

    /* Shadows */
    --h3-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --h3-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --h3-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --h3-shadow-glow: 0 0 20px rgba(39,80,151,0.15);

    /* Fluid Typography */
    --h3-font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --h3-heading-scale: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);

    /* Paper-like Background */
    --h3-paper: #fafaf8;
}

/* ==========================================================================
   Typography Enhancements
   ========================================================================== */

body {
    color: var(--h3-gray-900);
    background-color: var(--h3-gray-100);
}

/* Refined heading styles */
h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6 {
    color: var(--h3-dark);
    letter-spacing: -0.02em;
}

.uk-heading-small,
.uk-heading-medium,
.uk-heading-large {
    font-weight: 700;
    line-height: 1.15;
}

/* Article titles with gradient accent */
.uk-article-title,
h1.uk-heading-small {
    background: linear-gradient(135deg, var(--h3-dark) 0%, var(--h3-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lead text styling */
.uk-text-lead {
    color: var(--h3-gray-700);
    font-weight: 400;
    line-height: 1.7;
}

/* Meta text */
.uk-text-meta {
    color: var(--h3-gray-500);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Header Customization
   ========================================================================== */

.pd-header {
    background: linear-gradient(180deg, var(--h3-white) 0%, var(--h3-gray-100) 100%);
    border-bottom: 1px solid var(--h3-gray-300);
}

.pd-headerbar {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Navigation links */
.uk-navbar-nav > li > a {
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.uk-navbar-nav > li > a:hover {
    color: var(--h3-primary) !important;
}

.uk-navbar-nav > li.uk-active > a {
    color: var(--h3-primary) !important;
    font-weight: 600;
}

/* Navbar dropdown enhancement */
.uk-navbar-dropdown {
    background: var(--h3-white);
    box-shadow: var(--h3-shadow-lg);
    border: 1px solid var(--h3-gray-300);
    border-radius: var(--h3-radius-lg);
    padding: 1.5rem;
}

/* Logo area */
.pd-header .uk-logo img {
    transition: transform 0.3s ease;
}

.pd-header .uk-logo:hover img {
    transform: scale(1.02);
}

/* ==========================================================================
   Breaking News Banner
   ========================================================================== */

.uk-alert-primary {
    background: linear-gradient(90deg, var(--h3-danger) 0%, #c82333 100%);
    color: var(--h3-white);
    border: none;
    border-radius: var(--h3-radius-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--h3-shadow-md);
}

.uk-alert-success {
    background: var(--h3-success);
    color: var(--h3-white);
    border: none;
    border-radius: var(--h3-radius-md);
}

.uk-alert-warning {
    background: var(--h3-warning);
    color: var(--h3-dark);
    border: none;
    border-radius: var(--h3-radius-md);
}

.uk-alert-danger {
    background: var(--h3-danger);
    color: var(--h3-white);
    border: none;
    border-radius: var(--h3-radius-md);
}

.uk-alert-primary .uk-h3,
.uk-alert-primary .el-title {
    color: var(--h3-white) !important;
    font-weight: 700;
}

.uk-alert-primary .el-content {
    color: rgba(255,255,255,0.95);
}

/* ==========================================================================
   Cards & Article Items
   ========================================================================== */

/* Card base styling */
.uk-card {
    border-radius: var(--h3-radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle hover: gentle lift, not dramatic */
.uk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Default cards: barely visible shadow */
.uk-card-default {
    background: var(--h3-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--h3-gray-100);
}

/* Article list items */
.el-item.uk-panel {
    padding: 1rem;
    border-radius: var(--h3-radius-md);
    transition: background 0.2s ease;
}

.el-item.uk-panel:hover {
    background: rgba(39,80,151,0.03);
}

/* Image hover effects */
.uk-inline-clip img,
.el-image {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.uk-inline-clip:hover img,
a:hover .el-image {
    transform: scale(1.05);
}

/* Article-related images: rounded borders */
.el-image,
.uk-card-media-top img,
.uk-card-media-left img,
.uk-card-media-right img,
.el-item img,
.pd-article img,
.pd-article figure img,
article img:not(.h3-byline-avatar) {
    border-radius: var(--h3-radius-md);
}

/* Larger radius for featured/hero content images */
.uk-card-media-top img,
.uk-width-1-3 > a > picture img,
.uk-width-1-3 > picture img {
    border-radius: var(--h3-radius-lg);
}

/* Article inline clip containers */
.uk-inline-clip {
    border-radius: var(--h3-radius-md);
}

/* Figure styling with rounded images */
.pd-article figure {
    border-radius: var(--h3-radius-lg);
    overflow: hidden;
}

/* Image overlays */
.uk-overlay-primary {
    background: linear-gradient(180deg, transparent 0%, rgba(26,26,46,0.85) 100%);
}

/* ==========================================================================
   Category Labels & Tags
   ========================================================================== */

.uk-label,
.uk-text-primary {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Category color variations */
.uk-label-primary,
a[href*="haberler"] .uk-label {
    background: var(--h3-cat-haberler);
}

/* Tag styling */
.uk-subnav > li > a {
    border-radius: var(--h3-radius-xl);
    padding: 0.4rem 1rem;
    transition: all 0.2s ease;
}

.uk-subnav > li > a:hover {
    background: var(--h3-primary);
    color: var(--h3-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.uk-button {
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--h3-radius-md);
    transition: all 0.3s ease;
}

.uk-button-primary {
    background: linear-gradient(135deg, var(--h3-primary) 0%, var(--h3-primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(39,80,151,0.3);
}

.uk-button-primary:hover {
    background: linear-gradient(135deg, var(--h3-primary-light) 0%, var(--h3-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,80,151,0.4);
}

.uk-button-secondary {
    background: var(--h3-secondary);
    color: var(--h3-white);
}

.uk-button-secondary:hover {
    background: var(--h3-secondary-dark);
}

.uk-button-default {
    border: 2px solid var(--h3-gray-300);
    background: transparent;
}

.uk-button-default:hover {
    border-color: var(--h3-primary);
    color: var(--h3-primary);
    background: rgba(39,80,151,0.05);
}

/* ==========================================================================
   Section Styling
   ========================================================================== */

.uk-section {
    position: relative;
}

.uk-section-default {
    background: var(--h3-white);
}

.uk-section-muted {
    background: var(--h3-gray-100);
}

.uk-section-primary {
    background: linear-gradient(135deg, var(--h3-primary) 0%, var(--h3-primary-dark) 100%);
}

.uk-section-secondary {
    background: linear-gradient(180deg, var(--h3-dark) 0%, #16213E 100%);
}

/* Section dividers */
hr,
.uk-hr {
    border-top: 1px solid var(--h3-gray-300);
}


/* ==========================================================================
   Footer
   ========================================================================== */

.uk-section-secondary.uk-section {
    background: linear-gradient(180deg, var(--h3-dark) 0%, #0F0F1A 100%);
}

.uk-section-secondary a {
    transition: color 0.2s ease;
}

.uk-section-secondary a:hover {
    color: var(--h3-primary-light) !important;
}

/* Footer newsletter form */
.uk-section-secondary .uk-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--h3-white);
    border-radius: var(--h3-radius-md);
}

.uk-section-secondary .uk-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.uk-section-secondary .uk-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--h3-primary-light);
}

/* Social icons */
.uk-section-secondary [uk-icon] {
    transition: transform 0.2s ease, color 0.2s ease;
}

.uk-section-secondary a:hover [uk-icon] {
    transform: scale(1.15);
    color: var(--h3-primary-light);
}

/* Footer CTA (newsletter) - light section */
footer .footer-cta {
    background: var(--h3-gray-100);
    padding: 30px 0;
}

footer .footer-cta .uk-input {
    background: var(--h3-white);
    border: 1px solid var(--h3-gray-300);
    color: var(--h3-gray-900);
}

footer .footer-cta .uk-input::placeholder {
    color: var(--h3-gray-500);
}

footer .footer-cta .uk-input:focus {
    border-color: var(--h3-primary);
    background: var(--h3-white);
}

footer .footer-cta a {
    color: var(--h3-gray-700);
}

footer .footer-cta a:hover {
    color: var(--h3-primary) !important;
}

footer .footer-cta [uk-icon] {
    color: var(--h3-gray-500);
}

footer .footer-cta a:hover [uk-icon] {
    color: var(--h3-primary);
}

footer .footer-cta .uk-button-primary {
    background: var(--h3-secondary);
    box-shadow: none;
}

footer .footer-cta .uk-button-primary:hover {
    background: var(--h3-secondary-dark);
}

/* Footer text and link contrast */
footer .uk-section-secondary {
    color: rgba(255,255,255,0.85);
}

footer .uk-section-secondary h2,
footer .uk-section-secondary h3,
footer .uk-section-secondary .uk-h6 {
    color: var(--h3-white);
}

footer .uk-section-secondary a {
    color: rgba(255,255,255,0.75);
}

footer .uk-section-secondary a:hover {
    color: var(--h3-white) !important;
}

footer .uk-section-secondary .el-title a,
footer .uk-section-secondary .uk-link-heading {
    color: rgba(255,255,255,0.7);
}

footer .uk-section-secondary .el-title a:hover,
footer .uk-section-secondary .uk-link-heading:hover {
    color: var(--h3-white) !important;
}

/* Footer dividers */
footer .uk-section-secondary hr {
    border-color: rgba(255,255,255,0.15);
}

footer .uk-section-secondary .uk-divider-small::after {
    border-color: var(--h3-secondary);
}

/* Footer contact list */
footer .footer-contact {
    color: rgba(255,255,255,0.8);
}

footer .footer-contact li {
    padding: 0.25rem 0;
}

footer .footer-contact [uk-icon] {
    color: var(--h3-secondary);
    margin-right: 0.5rem;
    vertical-align: middle;
}

footer .footer-contact a {
    color: rgba(255,255,255,0.9);
}

footer .footer-contact a:hover {
    color: var(--h3-white) !important;
}

/* Footer reduced spacing */
footer .uk-section.uk-section-xsmall {
    padding-top: 20px;
    padding-bottom: 0;
}

footer .uk-section.uk-section-small {
    padding-top: 25px;
    padding-bottom: 25px;
}

footer .uk-grid-margin-large {
    margin-top: 20px;
}

footer .uk-grid-row-large > * {
    margin-top: 15px;
}

footer .uk-margin-medium {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

footer .uk-margin-small {
    margin-top: 5px !important;
}

footer .uk-h6 {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

footer .el-title {
    font-size: 0.8rem;
}

footer .uk-margin-top {
    margin-top: 3px !important;
}

/* Copyright section */
footer .uk-section.uk-section-small-bottom {
    padding-top: 0;
    padding-bottom: 20px;
}

footer .uk-text-muted {
    color: rgba(255,255,255,0.6) !important;
}

footer .uk-subnav-divider > :nth-child(n+2):not(.uk-first-column)::before {
    border-color: rgba(255,255,255,0.3);
}

footer .uk-subnav a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

footer .uk-subnav a:hover {
    color: var(--h3-white) !important;
}

/* Back to top button */
footer [uk-totop] {
    color: rgba(255,255,255,0.7);
}

footer [uk-totop]:hover {
    color: var(--h3-white);
}

footer .el-title {
    color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.uk-input,
.uk-select,
.uk-textarea {
    border: 2px solid var(--h3-gray-300);
    border-radius: var(--h3-radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
    border-color: var(--h3-primary);
    box-shadow: 0 0 0 3px rgba(39,80,151,0.1);
}

/* Search input */
.uk-search-input {
    border-radius: var(--h3-radius-xl);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.uk-breadcrumb > li > a {
    color: var(--h3-gray-500);
    transition: color 0.2s ease;
}

.uk-breadcrumb > li > a:hover {
    color: var(--h3-primary);
}

.uk-breadcrumb > :nth-child(n+2):not(.uk-first-column)::before {
    color: var(--h3-gray-300);
}

/* ==========================================================================
   Slider & Carousel
   ========================================================================== */

.uk-slider-items > * {
    transition: opacity 0.3s ease;
}

.uk-slidenav {
    background: var(--h3-white);
    border-radius: 50%;
    box-shadow: var(--h3-shadow-md);
    transition: all 0.2s ease;
}

.uk-slidenav:hover {
    background: var(--h3-primary);
    color: var(--h3-white);
}

/* Hero Slider with Overlay */
.hero-slider {
    position: relative;
    border-radius: var(--h3-radius-lg);
    overflow: hidden;
}

.hero-slider .hero-slide {
    position: relative;
    display: block;
}

.hero-slider .hero-slide picture,
.hero-slider .hero-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

@media (max-width: 959px) {
    .hero-slider .hero-slide picture,
    .hero-slider .hero-slide img {
        height: 400px;
    }
}

@media (max-width: 639px) {
    .hero-slider .hero-slide picture,
    .hero-slider .hero-slide img {
        height: 320px;
    }
}

.hero-slider .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(
        to top,
        rgba(26, 35, 50, 0.95) 0%,
        rgba(26, 35, 50, 0.85) 40%,
        rgba(26, 35, 50, 0.4) 70%,
        transparent 100%
    );
    color: var(--h3-white);
}

@media (max-width: 639px) {
    .hero-slider .hero-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
}

.hero-slider .hero-category {
    display: inline-block;
    background: var(--h3-secondary);
    color: var(--h3-white);
    padding: 0.35rem 0.75rem;
    border-radius: var(--h3-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-decoration: none;
    border-bottom: none;
    transition: background 0.2s ease;
}

.hero-slider a.hero-category:hover {
    background: var(--h3-secondary-dark);
    color: var(--h3-white);
}

.hero-slider .hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.75rem;
    color: var(--h3-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (min-width: 960px) {
    .hero-slider .hero-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1200px) {
    .hero-slider .hero-title {
        font-size: 2.5rem;
    }
}

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

.hero-slider .hero-title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--h3-secondary);
    text-underline-offset: 4px;
}

.hero-slider .hero-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0;
    max-width: 600px;
}

@media (max-width: 639px) {
    .hero-slider .hero-excerpt {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Hero slider navigation */
.hero-slider .uk-slidenav {
    background: rgba(255,255,255,0.95);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .uk-slidenav:hover {
    background: var(--h3-primary);
}

/* Hero slider dots */
.hero-slider + .uk-dotnav {
    margin-top: 1rem;
}

.hero-slider + .uk-dotnav > * > * {
    background: var(--h3-gray-300);
    border: none;
}

.hero-slider + .uk-dotnav > .uk-active > * {
    background: var(--h3-primary);
}

/* Hero Slider Thumbnail Navigation */
.h3-thumb-nav {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    gap: 4px;
    background: var(--h3-gray-100);
    padding: 4px;
    border-radius: var(--h3-radius-md);
}

.h3-thumb-nav > li {
    flex: 1;
    min-width: 0;
}

.h3-thumb-nav > li > a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--h3-radius-sm);
}

.h3-thumb-nav > li > a img {
    width: 100%;
    height: 56px;
    object-fit: cover;
    display: block;
    filter: grayscale(40%) brightness(0.7);
    transition: all 0.3s ease;
}

.h3-thumb-nav > li > a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.h3-thumb-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--h3-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.h3-thumb-nav > li > a:hover img {
    filter: grayscale(0%) brightness(0.9);
}

.h3-thumb-nav > li > a:hover::before {
    opacity: 1;
}

.h3-thumb-nav > li.uk-active > a {
    box-shadow: 0 0 0 2px var(--h3-primary);
}

.h3-thumb-nav > li.uk-active > a img {
    filter: grayscale(0%) brightness(1);
}

.h3-thumb-nav > li.uk-active > a::after {
    transform: scaleX(1);
}

@media (max-width: 959px) {
    .h3-thumb-nav > li > a img {
        height: 48px;
    }
}

@media (max-width: 639px) {
    .h3-thumb-nav {
        gap: 2px;
        padding: 2px;
    }
    .h3-thumb-nav > li > a img {
        height: 36px;
    }
}

/* ==========================================================================
   Blockquotes
   ========================================================================== */

blockquote {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, var(--h3-gray-100) 0%, var(--h3-white) 100%);
    border-left: 4px solid var(--h3-primary);
    border-radius: 0 var(--h3-radius-lg) var(--h3-radius-lg) 0;
    font-style: italic;
    color: var(--h3-gray-700);
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--h3-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* Pull quotes - editorial distinction */
.h3-pullquote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-style: italic;
    color: var(--h3-primary);
    border-left: 4px solid var(--h3-secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    line-height: 1.4;
}

/* ==========================================================================
   Article Content
   ========================================================================== */

/* Drop cap - classic editorial style */
.uk-dropcap::first-letter,
.pd-article > p:first-of-type::first-letter {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4em;
    float: left;
    line-height: 0.75;
    margin: 0.1em 0.12em 0 0;
    color: var(--h3-primary);
    font-weight: 600;
}

/* Figure captions */
figcaption {
    font-size: 0.85rem;
    color: var(--h3-gray-500);
    font-style: italic;
    padding-top: 0.75rem;
    border-top: 1px solid var(--h3-gray-300);
}

/* Article links - professional border transition */
article a:not(.uk-button),
.pd-article a:not(.uk-button) {
    color: var(--h3-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--h3-gray-300);
    transition: border-color 0.2s ease;
}

article a:not(.uk-button):hover,
.pd-article a:not(.uk-button):hover {
    border-color: var(--h3-primary);
}

/* ==========================================================================
   List Styles
   ========================================================================== */

.uk-list-divider > li:nth-child(n+2) {
    border-top-color: var(--h3-gray-300);
}

.uk-list-large > li:nth-child(n+2) {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

/* ==========================================================================
   Grid Dividers
   ========================================================================== */

.uk-grid-divider > :not(.uk-first-column)::before {
    border-left-color: var(--h3-gray-300);
}

.uk-grid-divider.uk-grid-stack > .uk-grid-margin::before {
    border-top-color: var(--h3-gray-300);
}

/* ==========================================================================
   Utilities & Helpers
   ========================================================================== */

/* Text gradient utility */
.h3-text-gradient {
    background: linear-gradient(135deg, var(--h3-primary) 0%, var(--h3-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect */
.h3-glow {
    box-shadow: var(--h3-shadow-glow);
}

/* Accent border */
.h3-border-accent {
    border-left: 4px solid var(--h3-primary);
    padding-left: 1rem;
}

/* Featured content border - newspaper style */
.h3-featured-card {
    border-left: 3px solid var(--h3-primary);
    padding-left: 1rem;
}

/* Category labels - clean, horizontal positioning */
.h3-category-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    background: var(--h3-gray-100);
    color: var(--h3-gray-700);
    border-radius: var(--h3-radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

/* Category labels as links */
a.h3-category-label {
    text-decoration: none;
    border-bottom: none;
}

a.h3-category-label:hover {
    filter: brightness(0.95);
}

.h3-category-label[data-category="haberler"] {
    background: rgba(39, 80, 151, 0.1);
    color: var(--h3-primary);
}

.h3-category-label[data-category="konular"] {
    background: rgba(135, 160, 72, 0.1);
    color: var(--h3-secondary-dark);
}

.h3-category-label[data-category="bolgeler"] {
    background: rgba(99, 102, 241, 0.1);
    color: var(--h3-cat-bolgeler);
}

.h3-category-label[data-category="kurumlar"] {
    background: rgba(47, 148, 198, 0.1);
    color: var(--h3-cat-kurumlar);
}

.h3-category-label[data-category="veri"] {
    background: rgba(23, 162, 184, 0.1);
    color: var(--h3-cat-veri);
}

.h3-category-label[data-category="gorus"] {
    background: rgba(245, 158, 11, 0.1);
    color: var(--h3-cat-gorus);
}

.h3-category-label[data-category="etkinlikler"] {
    background: rgba(139, 92, 246, 0.1);
    color: var(--h3-cat-etkinlikler);
}

/* Section dividers - category-colored top borders */
.h3-section-haberler { border-top: 3px solid var(--h3-cat-haberler); }
.h3-section-konular { border-top: 3px solid var(--h3-cat-konular); }
.h3-section-bolgeler { border-top: 3px solid var(--h3-cat-bolgeler); }
.h3-section-kurumlar { border-top: 3px solid var(--h3-cat-kurumlar); }
.h3-section-veri { border-top: 3px solid var(--h3-cat-veri); }
.h3-section-gorus { border-top: 3px solid var(--h3-cat-gorus); }
.h3-section-etkinlikler { border-top: 3px solid var(--h3-cat-etkinlikler); }

/* Category accent colors */
.h3-cat-haberler { color: var(--h3-cat-haberler); }
.h3-cat-konular { color: var(--h3-cat-konular); }
.h3-cat-bolgeler { color: var(--h3-cat-bolgeler); }
.h3-cat-kurumlar { color: var(--h3-cat-kurumlar); }
.h3-cat-veri { color: var(--h3-cat-veri); }
.h3-cat-gorus { color: var(--h3-cat-gorus); }
.h3-cat-etkinlikler { color: var(--h3-cat-etkinlikler); }

/* ==========================================================================
   Author/Byline Component
   ========================================================================== */

.h3-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--h3-gray-300);
    border-bottom: 1px solid var(--h3-gray-300);
    margin: 1.5rem 0;
}

.h3-byline-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.h3-byline-info {
    flex: 1;
    min-width: 0;
}

.h3-byline-name {
    font-weight: 600;
    color: var(--h3-dark);
    font-size: 0.95rem;
}

.h3-byline-name a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}

.h3-byline-name a:hover {
    color: var(--h3-primary);
}

.h3-byline-meta {
    font-size: 0.8rem;
    color: var(--h3-gray-500);
    margin-top: 0.15rem;
}

.h3-byline-meta time {
    font-weight: 500;
}

/* ==========================================================================
   Info Boxes for Health Content
   ========================================================================== */

.h3-infobox {
    padding: 1.25rem 1.5rem;
    border-radius: var(--h3-radius-md);
    margin: 1.5rem 0;
    border-left: 4px solid var(--h3-primary);
    background: var(--h3-gray-100);
}

.h3-infobox-title {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    color: var(--h3-dark);
}

.h3-infobox p:last-child {
    margin-bottom: 0;
}

.h3-infobox-warning {
    border-left-color: var(--h3-warning);
    background: rgba(255, 193, 7, 0.08);
}

.h3-infobox-warning .h3-infobox-title {
    color: #856404;
}

.h3-infobox-danger {
    border-left-color: var(--h3-danger);
    background: rgba(47, 148, 198, 0.06);
}

.h3-infobox-danger .h3-infobox-title {
    color: var(--h3-danger);
}

.h3-infobox-success {
    border-left-color: var(--h3-success);
    background: rgba(40, 167, 69, 0.06);
}

.h3-infobox-success .h3-infobox-title {
    color: #155724;
}

.h3-infobox-update {
    border-left-color: var(--h3-info);
    background: rgba(23, 162, 184, 0.06);
}

.h3-infobox-update .h3-infobox-title {
    color: #0c5460;
}

/* ==========================================================================
   Data Tables
   ========================================================================== */

.h3-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

.h3-table caption {
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--h3-gray-700);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--h3-primary);
    margin-bottom: 0;
}

.h3-table th {
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--h3-gray-700);
    padding: 0.75rem 1rem;
    background: var(--h3-gray-100);
    border-bottom: 1px solid var(--h3-gray-300);
}

.h3-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--h3-gray-300);
    vertical-align: top;
}

.h3-table tbody tr:hover {
    background: rgba(39, 80, 151, 0.02);
}

.h3-table tfoot td {
    font-weight: 600;
    background: var(--h3-gray-100);
    border-top: 2px solid var(--h3-gray-300);
}

/* Numeric columns align right */
.h3-table .h3-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Responsive table wrapper */
.h3-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.h3-table-wrap .h3-table {
    margin: 0;
    min-width: 500px;
}

/* ==========================================================================
   Stat Highlight Boxes
   ========================================================================== */

.h3-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--h3-gray-100);
    border-radius: var(--h3-radius-md);
}

.h3-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--h3-primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.h3-stat-label {
    font-size: 0.85rem;
    color: var(--h3-gray-600);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.h3-stat-change {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 600;
}

.h3-stat-change.up {
    color: var(--h3-danger);
}

.h3-stat-change.down {
    color: var(--h3-success);
}

/* Stat grid */
.h3-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* ==========================================================================
   Related Content
   ========================================================================== */

.h3-related {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--h3-gray-100);
    border-radius: var(--h3-radius-md);
}

.h3-related-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--h3-gray-600);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--h3-gray-300);
}

.h3-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.h3-related-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--h3-gray-200);
}

.h3-related-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.h3-related-list a {
    color: var(--h3-dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: none;
    transition: color 0.2s ease;
}

.h3-related-list a:hover {
    color: var(--h3-primary);
}

.h3-related-list .h3-related-meta {
    font-size: 0.75rem;
    color: var(--h3-gray-500);
    margin-top: 0.2rem;
}

/* ==========================================================================
   Ornamental Section Dividers
   ========================================================================== */

.h3-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--h3-gray-400);
}

.h3-divider::before,
.h3-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--h3-gray-300);
}

.h3-divider::before {
    margin-right: 1rem;
}

.h3-divider::after {
    margin-left: 1rem;
}

/* Dot divider (default) */
.h3-divider-dot::before,
.h3-divider-dot::after {
    border-bottom: none;
}

.h3-divider-dot {
    gap: 0.5rem;
}

.h3-divider-dot::before,
.h3-divider-dot::after {
    content: '•';
    flex: none;
    border: none;
    margin: 0;
    font-size: 0.5rem;
}

/* Simple line divider */
.h3-divider-line::before,
.h3-divider-line::after {
    flex: 1;
}

.h3-divider-line {
    gap: 0;
}

.h3-divider-line::before {
    margin-right: 0;
}

.h3-divider-line::after {
    margin-left: 0;
    display: none;
}

/* ==========================================================================
   Table of Contents (Sticky)
   ========================================================================== */

.h3-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 1rem;
    background: var(--h3-white);
    border: 1px solid var(--h3-gray-200);
    border-radius: var(--h3-radius-md);
    font-size: 0.875rem;
}

.h3-toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--h3-gray-500);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--h3-gray-200);
}

.h3-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.h3-toc-list li {
    margin: 0.25rem 0;
}

.h3-toc-list a {
    color: var(--h3-gray-700);
    text-decoration: none;
    border-bottom: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.h3-toc-list a:hover,
.h3-toc-list a.active {
    color: var(--h3-primary);
}

.h3-toc-list a.active {
    font-weight: 600;
}

/* Nested levels */
.h3-toc-list ul {
    list-style: none;
    padding-left: 1rem;
    margin: 0.25rem 0;
}

.h3-toc-list ul a {
    font-size: 0.8rem;
    color: var(--h3-gray-500);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes h3-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes h3-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.h3-animate-in {
    animation: h3-fade-in 0.6s ease-out;
}

/* Breaking news pulse */
.uk-alert-primary .uk-h3::before {
    content: '●';
    display: inline-block;
    margin-right: 0.5rem;
    animation: h3-pulse 1.5s infinite;
    color: var(--h3-white);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 959px) {
    :root {
        --h3-radius-lg: 8px;
    }

    .uk-heading-small {
        font-size: 1.75rem;
    }

    blockquote {
        padding: 1.5rem;
    }
}

@media (max-width: 639px) {
    .uk-alert-primary {
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* ==========================================================================
   Dark Mode Support (optional - activated via class)
   ========================================================================== */

.h3-dark-mode {
    --h3-white: #1A1A2E;
    --h3-gray-100: #16213E;
    --h3-gray-300: #2D3748;
    --h3-gray-500: #718096;
    --h3-gray-700: #A0AEC0;
    --h3-gray-900: #E2E8F0;
    --h3-dark: #F7FAFC;
}

.h3-dark-mode body {
    background-color: var(--h3-gray-100);
    color: var(--h3-gray-900);
}

.h3-dark-mode .uk-section-default {
    background: var(--h3-white);
}

.h3-dark-mode .uk-card-default {
    background: var(--h3-white);
    border-color: var(--h3-gray-300);
}

/* True black option for OLED */
.h3-dark-mode.h3-true-black {
    --h3-dark: #000;
    --h3-gray-900: #0a0a0a;
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Reading Experience
   ========================================================================== */

/* Optimal line length for readability */
.pd-article {
    max-width: 70ch;
    margin-inline: auto;
    font-size: var(--h3-font-size-base);
}

/* Reading progress indicator */
.h3-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--h3-primary), var(--h3-secondary));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .pd-header,
    .uk-section-secondary,
    .uk-navbar-dropdown,
    .uk-button,
    .uk-slidenav {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}
