/* =============================================
   Haberay Benzeri Haber Sitesi CSS
   ============================================= */

:root {
    --primary-red: #e74c3c;
    --dark-bg: #1a1a1a;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --text-dark: #2c3e50;
    --text-gray: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
    font-size: 15px;
}

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

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

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

/* =============================================
   HEADER
   ============================================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-top {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-red);
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 50%;
    font-size: 14px;
    color: var(--text-gray);
}

.social-links a:hover {
    background: var(--primary-red);
    color: #fff;
}

.search-toggle {
    margin-left: 10px;
}

/* Navigation */
.main-nav {
    background: var(--dark-bg);
}

.nav-menu {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-menu li a:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
}

/* =============================================
   MAIN CONTENT
   ============================================= */

.main-content {
    padding: 30px 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* =============================================
   BİG NEWS CARDS (Üstteki Büyük Kartlar)
   ============================================= */

.big-news-section {
    margin-bottom: 30px;
}

.big-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.big-news-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.big-news-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.big-news-card .news-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.big-news-card .news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.big-news-card .category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-red);
    color: #fff;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.big-news-card .news-content {
    padding: 15px;
}

.big-news-card h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 600;
}

.big-news-card h3 a:hover {
    color: var(--primary-red);
}

.big-news-card .meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-gray);
}

/* =============================================
   NEWS LIST (Ana Haber Listesi)
   ============================================= */

.news-list-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-red);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-list-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item .news-thumb {
    width: 200px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.news-list-item .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-list-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-list-item .news-info {
    flex: 1;
}

.news-list-item .category {
    display: inline-block;
    color: var(--primary-red);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.news-list-item h4 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 600;
}

.news-list-item h4 a:hover {
    color: var(--primary-red);
}

.news-list-item .excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 8px;
}

.news-list-item .meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-gray);
}

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

.right-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

/* Son Dakika Widget */
.breaking-news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breaking-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.breaking-news-item .thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.breaking-news-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breaking-news-item .info h5 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    font-weight: 600;
}

.breaking-news-item .info h5 a:hover {
    color: var(--primary-red);
}

.breaking-news-item .info .meta {
    font-size: 11px;
    color: var(--text-gray);
}

/* Popüler Widget */
.popular-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.popular-item .number {
    width: 30px;
    height: 30px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.popular-item .info h5 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    font-weight: 600;
}

.popular-item .info h5 a:hover {
    color: var(--primary-red);
}

.popular-item .info .views {
    font-size: 11px;
    color: var(--text-gray);
}

/* =============================================
   REKLAM ALANLARI
   ============================================= */

.ad-space {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.ad-space img {
    margin: 0 auto;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

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

/* =============================================
   ARAMA MODAL
   ============================================= */

.search-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.search-modal-content {
    position: relative;
    margin: 15% auto;
    max-width: 600px;
    padding: 20px;
}

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

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
}

.search-form button {
    padding: 15px 30px;
    background: var(--primary-red);
    border: none;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* =============================================
   SCROLL TO TOP
   ============================================= */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar {
        position: static;
    }
    
    .big-news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .news-list-item {
        flex-direction: column;
    }
    
    .news-list-item .news-thumb {
        width: 100%;
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
}