/* ================================================
   news.css - news.php VE news-detail.php icin
   Accent: #e20613 (DAMAK kirmizi)
   ================================================ */

/* ===== HERO ===== */
.page-hero {
    min-height: 420px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 50%, #111 100%);
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 140px 40px 80px;
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}
.page-hero-blob {
    position: absolute; top: -60px; right: -60px;
    width: 420px; height: 420px; z-index: 2; pointer-events: none;
    background: radial-gradient(circle, rgba(226,6,19,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.page-hero-content {
    position: relative; z-index: 3;
    max-width: 1200px; margin: 0 auto; width: 100%;
    animation: newsFadeUp 0.7s ease both;
}
.page-hero-tag {
    display: inline-block;
    background: rgba(226,6,19,0.15);
    border: 1px solid rgba(226,6,19,0.35);
    color: #e20613; font-size: 11px; font-weight: 700;
    letter-spacing: 3px; padding: 6px 18px;
    border-radius: 20px; margin-bottom: 18px; text-transform: uppercase;
}
.page-hero-content h1 {
    font-size: clamp(30px, 5vw, 58px); font-weight: 700;
    color: #fff; line-height: 1.15; margin-bottom: 14px;
}
.page-hero-content h1 span { color: #e20613; }
.page-hero-desc {
    color: rgba(255,255,255,0.6); font-size: 16px;
    max-width: 520px; line-height: 1.7; margin-bottom: 22px;
}
.page-breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px;
}
.page-breadcrumb a { color: rgba(255,255,255,0.4); font-size: 13px; text-decoration: none; transition: color .2s; }
.page-breadcrumb a:hover { color: #e20613; }
.page-breadcrumb i { color: rgba(255,255,255,0.2); font-size: 10px; }
.page-breadcrumb span { color: #fff; font-size: 13px; font-weight: 500; }

/* ===== PAYLAŞIMLI ===== */
.page-container { max-width: 1200px; margin: 0 auto; }

.page-intro-section { padding: 60px 40px 20px; text-align: center; background: #fff; }

.section-tag-line {
    display: inline-block; color: #e20613;
    font-size: 11px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 14px;
    padding-left: 22px; position: relative;
}
.section-tag-line::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); width: 14px; height: 2px; background: #e20613;
}
.page-intro-section h2 {
    font-size: clamp(24px, 3.5vw, 38px); font-weight: 700;
    margin-bottom: 8px; color: #1a1a1a; line-height: 1.2;
}
.page-intro-section h2 span { color: #e20613; }

/* ===== HABERLER LİSTE SAYFASI ===== */
.page-items-section { padding: 30px 40px 80px; background: #f8f8f8; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.news-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
    animation: newsFadeUp 0.6s ease both;
}
.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(226,6,19,0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.09);
}

.news-img-wrap {
    position: relative; height: 210px; overflow: hidden;
}
.news-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.news-card:hover .news-img-wrap img { transform: scale(1.05); }

.news-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    display: flex; align-items: center; justify-content: center;
}
.news-img-placeholder i { font-size: 48px; color: #ccc; }

.news-category {
    position: absolute; top: 14px; left: 14px;
    background: #e20613; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    letter-spacing: 1px; text-transform: uppercase;
}

.news-body {
    padding: 22px; flex: 1;
    display: flex; flex-direction: column;
}
.news-date {
    font-size: 11px; color: #aaa;
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 10px;
}
.news-date i { color: #e20613; }

.news-title {
    font-size: 16px; font-weight: 700;
    color: #1a1a1a; line-height: 1.45;
    margin-bottom: 10px; flex: 1;
    transition: color .2s;
}
.news-card:hover .news-title { color: #e20613; }

.news-summary {
    font-size: 13px; color: #888;
    line-height: 1.65; margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex; align-items: center; gap: 7px;
    color: #e20613; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: gap 0.2s;
}
.news-read-more:hover { gap: 12px; }
.news-read-more i { font-size: 11px; }

.news-empty {
    text-align: center; padding: 80px 20px; color: #bbb;
    background: #fff; border-radius: 20px; border: 1px dashed #e0e0e0;
}
.news-empty i { font-size: 56px; margin-bottom: 20px; display: block; color: #ddd; }
.news-empty p { font-size: 15px; }

/* ===== DETAY SAYFASI ===== */

/* Hero with image overlay */
.news-detail-hero {
    position: relative;
    min-height: 460px;
    display: flex; align-items: flex-end;
    overflow: hidden;
}
.news-detail-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0a0a0a, #1a0505);
}
.news-detail-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover; opacity: 0.25;
}
.news-detail-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.news-detail-hero-content {
    position: relative; z-index: 2;
    width: 100%; max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px 50px;
}

.news-detail-meta {
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap; margin-bottom: 18px;
}
.news-detail-category {
    background: #e20613; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 4px 14px; border-radius: 20px;
    letter-spacing: 1px; text-transform: uppercase;
}
.news-detail-date {
    color: rgba(255,255,255,0.5); font-size: 12px;
    display: flex; align-items: center; gap: 6px;
}
.news-detail-date i { color: #e20613; }

.news-detail-title {
    font-size: clamp(22px, 4vw, 36px); font-weight: 700;
    color: #fff; line-height: 1.3; margin-bottom: 0;
}
.news-detail-title span { color: #e20613; }

/* Detay body */
.news-detail-body {
    max-width: 900px; margin: 0 auto;
    padding: 50px 40px 30px;
    background: #fff;
}

.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    color: #e20613; font-size: 13px; font-weight: 600;
    text-decoration: none; margin-bottom: 28px; transition: gap 0.2s;
}
.back-btn:hover { gap: 13px; }

.news-summary-box {
    background: #fff8f8;
    border-left: 3px solid #e20613;
    border-radius: 0 10px 10px 0;
    padding: 18px 22px; margin-bottom: 30px;
    color: #555; font-size: 15px; line-height: 1.7; font-style: italic;
}

.news-content {
    color: #555; font-size: 15px;
    line-height: 1.9; white-space: pre-line;
}
.news-content p { margin-bottom: 18px; }

/* Share bar */
.news-share-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 40px; padding-top: 22px;
    border-top: 1px solid #eee;
    background: #fff;
    max-width: 900px; margin-left: auto; margin-right: auto;
    padding-left: 40px; padding-right: 40px; padding-bottom: 10px;
}
.share-label { color: #aaa; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.share-btn {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; text-decoration: none;
    transition: transform 0.2s, opacity 0.2s; opacity: 0.85;
}
.share-btn:hover { transform: translateY(-2px); opacity: 1; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }
.share-btn.li { background: #0a66c2; }

/* Prev / Next nav */
.news-nav {
    max-width: 900px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; padding: 20px 40px 50px;
    background: #fff; border-top: 1px solid #eee;
}
.news-nav-btn {
    background: #f8f8f8; border: 1px solid #e8e8e8;
    border-radius: 12px; padding: 18px 20px;
    text-decoration: none;
    display: flex; align-items: center; gap: 14px;
    transition: border-color 0.3s, background 0.3s;
}
.news-nav-btn:hover { border-color: rgba(226,6,19,0.3); background: #fff; }
.news-nav-btn.next { flex-direction: row-reverse; text-align: right; }
.news-nav-icon {
    width: 36px; height: 36px; min-width: 36px;
    background: rgba(226,6,19,0.1); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: #e20613;
}
.news-nav-label { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.news-nav-title {
    font-size: 13px; color: #333; font-weight: 600; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-nav-empty { pointer-events: none; opacity: 0; }

/* Related news */
.related-section { background: #f8f8f8; padding: 50px 0; border-top: 1px solid #eee; }
.related-inner { max-width: 900px; margin: 0 auto; padding: 0 40px; }
.related-title {
    font-size: 16px; font-weight: 700; color: #1a1a1a;
    margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
}
.related-title i { color: #e20613; }

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

.related-card {
    background: #fff; border: 1px solid #e8e8e8;
    border-radius: 12px; overflow: hidden;
    text-decoration: none; transition: border-color 0.3s, transform 0.3s;
    display: flex; flex-direction: column;
}
.related-card:hover { border-color: rgba(226,6,19,0.3); transform: translateY(-4px); }

.related-card-img {
    height: 130px; overflow: hidden;
    background: #f0f0f0; display: flex; align-items: center; justify-content: center;
}
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-img i { font-size: 36px; color: #ccc; }

.related-card-body { padding: 14px; flex: 1; }
.related-card-date { font-size: 10px; color: #aaa; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.related-card-date i { color: #e20613; }
.related-card-title {
    font-size: 13px; color: #333; font-weight: 600; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.related-card:hover .related-card-title { color: #e20613; }

/* ===== ANİMASYON ===== */
@keyframes newsFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSİVE ===== */
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .page-hero { padding: 110px 20px 60px; min-height: 360px; }
    .page-intro-section { padding: 50px 20px 20px; }
    .page-items-section { padding: 20px 20px 50px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-detail-hero-content { padding: 40px 20px 36px; }
    .news-detail-body { padding: 30px 20px; }
    .news-share-bar { padding-left: 20px; padding-right: 20px; }
    .news-nav { grid-template-columns: 1fr; padding: 20px; }
    .related-grid { grid-template-columns: 1fr; }
    .related-inner { padding: 0 20px; }
}
@media (max-width: 480px) {
    .page-cta { flex-direction: column; align-items: center; }
    .btn-page { width: 100%; justify-content: center; }
}

/* news.css - products-premium.css ile ayni hero/header/footer class yapisi */
.news-hero-bg {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 50%, #111 100%);
}

/* ===== KATEGORİ FİLTRE BUTONLARI ===== */
.blog-filter-section {
    background: #fff;
    padding: 28px 40px 0;
    border-bottom: 1px solid #f0f0f0;
}
.blog-filter-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; gap: 10px; flex-wrap: wrap;
}
.blog-filter-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 30px;
    font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all .25s;
    border: 2px solid #e8e8e8; color: #666;
    background: #fff;
    margin-bottom: 12px;
}
.blog-filter-btn:hover {
    border-color: #e20613; color: #e20613;
    transform: translateY(-2px);
}
.blog-filter-btn.active {
    background: #e20613; color: #fff;
    border-color: #e20613;
    box-shadow: 0 6px 20px rgba(226,6,19,0.25);
}
.blog-filter-btn i { font-size: 12px; }

@media (max-width: 768px) {
    .blog-filter-section { padding: 20px 20px 0; }
    .blog-filter-btn { padding: 8px 16px; font-size: 12px; }
}

/* ===== DETAY SAYFASI EK STİLLER ===== */
.news-hero-bg {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 50%, #111 100%);
}

/* Kategori badge renkleri (detay hero) */
.news-detail-category {
    display: inline-block;
    padding: 5px 14px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 14px;
}
.news-detail-category.badge-sustainability { background: rgba(22,163,74,.2); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.news-detail-category.badge-social         { background: rgba(147,51,234,.2); color: #c084fc; border: 1px solid rgba(192,132,252,.3); }
.news-detail-category.badge-news           { background: rgba(226,6,19,.2);   color: #f87171; border: 1px solid rgba(248,113,113,.3); }

/* İçerik alanı düzeltme */
.news-detail-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 40px 60px;
}
.news-content {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}
.news-summary-box {
    border-left: 4px solid #e20613;
    background: #fff9f9;
    padding: 18px 24px;
    margin-bottom: 30px;
    border-radius: 0 10px 10px 0;
    font-size: 15px;
    font-style: italic;
    color: #555;
    line-height: 1.7;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e20613;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 28px;
    transition: gap .2s;
}
.back-btn:hover { gap: 13px; }

/* İlgili kartlar */
.related-card-cat {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #e20613;
    margin-bottom: 4px;
}
.related-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #f0f0f0; color: #ccc; font-size: 32px;
}

/* Paylaş butonları */
.news-share-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 24px 0; border-top: 1px solid #eee; margin-top: 36px; flex-wrap: wrap;
}
.share-label { font-size: 13px; font-weight: 600; color: #666; }
.share-btn {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }
.share-btn.li { background: #0077b5; }

/* Önceki/Sonraki navigasyon */
.news-nav {
    display: flex; gap: 0;
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
    max-width: 1200px; margin: 0 auto;
}
.news-nav-btn {
    flex: 1; display: flex; align-items: center; gap: 16px;
    padding: 24px 32px; text-decoration: none; color: #1a1a1a;
    transition: background .2s;
}
.news-nav-btn:hover { background: #fff9f9; }
.news-nav-btn.next { flex-direction: row-reverse; justify-content: flex-start; border-left: 1px solid #eee; }
.news-nav-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: #e20613; color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.news-nav-label { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.news-nav-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.news-nav-empty { flex: 1; }

/* İlgili yazılar */
.related-section { background: #f8f8f8; padding: 50px 40px; border-top: 1px solid #eee; }
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.related-title i { color: #e20613; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.related-card { text-decoration: none; color: inherit; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #eee; transition: all .3s; display: block; }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px rgba(0,0,0,.08); border-color: rgba(226,6,19,.2); }
.related-card-img { height: 160px; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.related-card:hover .related-card-img img { transform: scale(1.06); }
.related-card-body { padding: 16px; }
.related-card-date { font-size: 11px; color: #aaa; margin-bottom: 6px; }
.related-card-title { font-size: 14px; font-weight: 600; line-height: 1.45; color: #1a1a1a; }

@media (max-width: 768px) {
    .news-detail-body { padding: 30px 20px 40px; }
    .related-section { padding: 36px 20px; }
    .related-grid { grid-template-columns: 1fr; }
    .news-nav-btn { padding: 16px 20px; }
    .news-nav-title { font-size: 13px; }
}
