/* ==========================================================================
   WPDijitasyon - Main CSS (haberv9 pixel-perfect match)
   ========================================================================== */

:root {
    --primary-color: #de1e12;
    --primary-dark: #c41820;
    --secondary-color: #1a1a1a;
    --text-color: #121212;
    --text-light: #666;
    --bg-color: #f7f7f7;
    --white: #ffffff;
    --border-color: #e1e1e1;
    --breaking-bg: var(--primary-color);
    --font-main: 'Poppins', sans-serif;
    --container-width: 1170px;
    --gap: 20px;
    --radius: 0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-color); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }

/* Container */
.container,
.genelortala {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Section spacing */
.home-section { margin-top: 20px; }

/* Section Title Bar (haberv9 exact: gray line + red underline under title) */
.section-title-bar {
    position: relative;
    display: block;
    margin-bottom: 20px;
}

.section-title-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.section-title-bar h2 {
    display: inline-block;
    position: relative;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    padding-bottom: 8px;
    z-index: 1;
}

.section-title-bar h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.section-title-bar .see-all {
    float: right;
    font-size: 11px;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 600;
    line-height: 46px;
}

.section-title-bar .see-all:hover { color: var(--primary-color); }

/* News Card (haberv9: no border-radius) */
.haber {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: transform 0.2s ease;
}

.haber:hover { transform: translateY(-2px); }

.haber .manset-resim {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.haber .manset-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.haber:hover .manset-resim img { transform: scale(1.03); }

.haber .manset_baslik { padding: 8px 0; }

.haber .manset_baslik h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.haber .manset_baslik h3 a:hover { color: var(--primary-color); }

/* Hide time badge on homepage (haberv9 doesn't show it) */
.homepage .zaman-badge { display: none; }

/* Overlay card */
.haber.overlay-card .manset_baslik {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 40px 15px 15px;
}

.haber.overlay-card .manset_baslik h3 { color: #fff; font-size: 16px; }
.haber.overlay-card .manset_baslik h3 a { color: #fff; }
.haber.overlay-card .manset_baslik h3 a:hover { color: #ddd; }

/* Category badge */
.haber .kategori-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}

.haber .zaman-badge {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

/* Clearfix */
.clearfix::after { content: ""; display: table; clear: both; }

/* Utilities */
.hidden { display: none !important; }

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Ad areas */
.reklam-alani { text-align: center; margin: 20px 0; }
.reklam-alani img { max-width: 100%; height: auto; }

/* Screen reader */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
