@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f3f5;
    --text-main: #212529;
    --text-muted: #495057;
    --accent: #e60000;
    --accent-glow: rgba(230, 0, 0, 0.3);
    --border: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 25%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Header (Kırmızı Modern Header) */
.modern-header {
    background: #e60000;
    border-bottom: 4px solid #b30000;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.modern-header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.modern-header .logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transform: scale(1.8);
    transform-origin: left center;
    mix-blend-mode: lighten;
}

/* Header İçi Kategori Menüsü */
.category-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-nav-inner a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.category-nav-inner a:hover, .category-nav-inner a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffd700;
    transform: scale(1.05);
}

.category-nav-inner .sep {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    user-select: none;
}

/* Zengin Footer Tasarımı */
.site-footer {
    background: #111;
    color: #a0aec0;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 5px solid #e60000;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #e60000;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e60000;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    transition: background 0.3s;
}

.footer-social a:hover {
    background: #e60000;
}

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

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #a0a0ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

/* Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Featured News */
.featured-news {
    grid-column: 1 / -1; /* spans full width */
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.featured-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
    border-color: rgba(255, 255, 255, 0.2);
}

.featured-news .img-container {
    height: 100%;
    min-height: 400px;
}

.featured-news .content {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-news h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* Regular News Card (Glassmorphism) */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(230,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border);
}

.news-card .content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

/* Buttons */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-card:hover .read-more::after {
    transform: translateX(4px);
}

/* Detail Page */
.detail-header {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto 2rem;
}

.detail-header h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin: 1rem 0;
}

.detail-img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.detail-content {
    max-width: 800px;
    margin: 0 auto 5rem;
    font-size: 1.1rem;
    color: #d1d1d6;
}

.detail-content p {
    margin-bottom: 1.5rem;
}

.detail-content h2, .detail-content h3 {
    color: var(--text-main);
    margin: 2.5rem 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-news {
        grid-template-columns: 1fr;
    }
    
    .featured-news .img-container {
        min-height: 250px;
    }
    
    .featured-news h2 {
        font-size: 1.75rem;
    }
    
    .detail-header h1 {
        font-size: 2rem;
    }
}

/* Kırmızı Kategori Menüsü */
.category-nav {
    background: #e60000;
    padding: 12px 0;
    border-bottom: 3px solid #b30000;
    text-align: center;
}
.category-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.category-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.category-nav a:hover, .category-nav a.active {
    color: #ffd700;
    transform: scale(1.05);
}
.category-nav .sep {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    user-select: none;
}

/* Izgara (Grid) Sistemi */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}
.news-grid .news-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-grid .news-card:hover {
    transform: translateY(-5px);
}
.news-grid .news-card img {
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent);
}
.news-grid .news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-grid .category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    width: max-content;
}
.news-grid h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}
.news-grid h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}
.news-grid h3 a:hover {
    color: var(--accent);
}
.news-grid .summary {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}
.news-grid .news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}
.news-grid .date {
    font-size: 0.85rem;
    color: #718096;
}
.news-grid .read-more {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.news-grid .read-more:hover {
    color: #ff6b6b;
}
