/* ============================================
   AJANS HALİLİYE - ANA STİL DOSYASI
   Haliliye Belediyesi Haber Portalı
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

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

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   ÜST BAR - SOSYAL MEDYA
   ============================================ */
.top-bar {
    background-color: #333;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar .social-icons {
    display: flex;
    gap: 12px;
}

.top-bar .social-icons a {
    color: #fff;
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.top-bar .social-icons a:hover {
    opacity: 0.8;
}

/* ============================================
   LOGO ALANI
   ============================================ */
.logo-area {
    background-color: #fff;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.logo-area img {
    height: 80px;
    margin: 0 auto;
}

/* ============================================
   NAVİGASYON
   ============================================ */
.main-nav {
    background: linear-gradient(135deg, #00BCD4, #00ACC1);
    position: relative;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
}

.nav-menu li a {
    display: block;
    padding: 14px 20px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: rgba(0, 0, 0, 0.15);
}

.nav-search-btn {
    padding: 14px 18px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: none;
    transition: background-color 0.2s ease;
}

.nav-search-btn:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay form {
    width: 90%;
    max-width: 600px;
    display: flex;
}

.search-overlay input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-overlay button[type="submit"] {
    padding: 15px 25px;
    background: #00BCD4;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
}

.search-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-bar {
    background-color: #f5f5f5;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-title {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    font-weight: 400;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
}

.breadcrumb-nav a {
    color: #888;
}

.breadcrumb-nav a:hover {
    color: #00BCD4;
}

.breadcrumb-nav .home-icon {
    color: #00BCD4;
}

.breadcrumb-nav span {
    color: #999;
}

/* ============================================
   ANA İÇERİK ALANI
   ============================================ */
.main-content {
    padding: 20px 0;
}

.content-wrapper {
    display: flex;
    gap: 25px;
}

.content-left {
    flex: 1;
    min-width: 0;
}

.content-right {
    width: 320px;
    flex-shrink: 0;
}

/* ============================================
   SON HABERLER BAŞLIĞI
   ============================================ */
.section-title-bar {
    background: linear-gradient(135deg, #00BCD4, #00ACC1);
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* ============================================
   HABER KARTI - ANASAYFA
   ============================================ */
.news-card {
    background: #fff;
    margin-bottom: 15px;
    display: flex;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.news-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-card .card-image {
    width: 200px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.news-card .card-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.news-card .card-title a:hover {
    color: #00BCD4;
}

.news-card .card-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card .card-date i {
    font-size: 11px;
}

.news-card .card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.category-badge {
    display: inline-block;
    background: #00BCD4;
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease;
}

.category-badge:hover {
    background: #00ACC1;
}

/* ============================================
   HABER KARTI - KATEGORİ SAYFASI (büyük)
   ============================================ */
.news-card-large {
    background: #fff;
    margin-bottom: 15px;
    display: flex;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.news-card-large:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-card-large .card-image {
    width: 280px;
    min-height: 180px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.news-card-large:hover .card-image img {
    transform: scale(1.05);
}

.news-card-large .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.news-card-large .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-card-large .card-title a:hover {
    color: #00BCD4;
}

.news-card-large .card-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   SIDEBAR
   ============================================ */

/* Kategori Widget */
.sidebar-widget {
    background: #fff;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.sidebar-title {
    background: linear-gradient(135deg, #00BCD4, #00ACC1);
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Kategori Listesi */
.category-list {
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid #f0f0f0;
}

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

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 13px;
    color: #555;
    transition: all 0.2s ease;
}

.category-list li a:hover {
    background-color: #f9f9f9;
    color: #00BCD4;
    padding-left: 20px;
}

.category-list li a .cat-arrow {
    color: #00BCD4;
    margin-right: 5px;
    font-size: 10px;
}

.category-list li a .cat-count {
    color: #999;
    font-size: 12px;
}

/* Arama Widget */
.search-widget {
    padding: 15px;
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-right: none;
    font-size: 13px;
    outline: none;
    color: #666;
}

.search-form input::placeholder {
    color: #aaa;
}

.search-form button {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-left: none;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-form button:hover {
    color: #00BCD4;
}

/* Sosyal Medya Widget */
.social-widget {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: opacity 0.2s ease;
}

.social-btn:hover {
    opacity: 0.85;
}

.social-btn.facebook { background-color: #3b5998; }
.social-btn.twitter { background-color: #1da1f2; }
.social-btn.instagram { background-color: #e4405f; }
.social-btn.youtube { background-color: #cd201f; }

/* ============================================
   HABER DETAY SAYFASI
   ============================================ */
.post-detail {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 0;
}

.post-detail .post-image {
    width: 100%;
    overflow: hidden;
}

.post-detail .post-image img {
    width: 100%;
    height: auto;
}

.post-detail .post-content-wrap {
    padding: 25px;
}

.post-detail .post-title {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.post-detail .post-text {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-detail .post-text p {
    margin-bottom: 15px;
}

/* YouTube Embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 25px 0;
    border-radius: 4px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Post Meta */
.post-meta {
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.post-date {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Galeri */
.post-gallery {
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

.gallery-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-grid .gallery-item {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.gallery-grid .gallery-item:hover {
    border-color: #00BCD4;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   SAYFALAMA
   ============================================ */
.pagination-wrapper {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 3px;
}

.pagination li {
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 8px;
    font-size: 13px;
    border: 1px solid #ddd;
    color: #555;
    background: #fff;
    transition: all 0.2s ease;
}

.pagination li a:hover {
    background: #00BCD4;
    border-color: #00BCD4;
    color: #fff;
}

.pagination li.active span,
.pagination li span[aria-current="page"] {
    background: #00BCD4;
    border-color: #00BCD4;
    color: #fff;
}

.pagination li.disabled span {
    color: #ccc;
    cursor: not-allowed;
}

/* ============================================
   ARAMA SONUÇLARI
   ============================================ */
.search-results-title {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.search-results-title strong {
    color: #00BCD4;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: #333;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-menu a {
    color: #ccc;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-copyright {
    color: #999;
    font-size: 12px;
}

.footer-copyright a {
    color: #ccc;
}

.footer-copyright a:hover {
    color: #fff;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #00BCD4;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 500;
    font-size: 16px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #00ACC1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }

    .content-right {
        width: 100%;
    }

    .news-card .card-image {
        width: 160px;
    }

    .news-card-large .card-image {
        width: 220px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }

    .nav-menu li a {
        padding: 12px 14px;
        font-size: 12px;
    }

    .news-card {
        flex-direction: column;
    }

    .news-card .card-image {
        width: 100%;
        height: 200px;
    }

    .news-card-large {
        flex-direction: column;
    }

    .news-card-large .card-image {
        width: 100%;
        height: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .post-detail .post-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .nav-menu {
        flex-wrap: wrap;
    }

    .nav-menu li a {
        padding: 10px 12px;
        font-size: 11px;
    }

    .gallery-grid .gallery-item {
        width: 65px;
        height: 50px;
    }
}

/* ============================================
   MOBILE MENU (Hamburger)
   ============================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 14px 18px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #00BCD4;
        flex-direction: column;
        z-index: 99;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li a {
        border-top: 1px solid rgba(255,255,255,0.15);
    }
}

/* ============================================
   GEÇİŞ ANİMASYONLARI
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-card,
.news-card-large {
    animation: fadeIn 0.4s ease-out;
}

/* Placeholder image style */
.placeholder-img {
    background: linear-gradient(135deg, #00BCD4, #4DD0E1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 100%;
    min-height: 140px;
}
