/* ============================================
   Genel Haber Temasi - Apple Tarzi Minimal
   ============================================ */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif);
    background: var(--color-surface);
    color: var(--color-text);
    line-height: 1.6;
}
a { color: var(--color-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--color-secondary); }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif);
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
    color: var(--color-text);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* Container & Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 32px 0; }

/* Navbar */
.navbar {
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(255,255,255,0.8);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}
.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.5px;
}
.navbar-nav { display: flex; gap: 4px; list-style: none; }
.navbar-nav a {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: 8px;
    transition: all 0.15s;
}
.navbar-nav a:hover, .navbar-nav a.active {
    color: var(--color-text);
    background: var(--color-surface);
}
.navbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-search input {
    padding: 7px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--color-surface);
    width: 200px;
    transition: border-color 0.15s;
}
.navbar-search input:focus { outline: none; border-color: var(--color-primary); }
.dark-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
    color: var(--color-text-secondary);
    transition: all 0.15s;
}
.dark-toggle:hover { background: var(--color-surface); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--color-text); }

/* Ticker */
.ticker {
    background: var(--color-primary);
    color: #fff;
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
}
.ticker-label {
    background: rgba(0,0,0,0.2);
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
}
.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.ticker-track {
    display: flex;
    gap: 48px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
    padding: 0 16px;
}
.ticker-track a { color: #fff; font-size: 13px; font-weight: 500; }
.ticker-track a:hover { text-decoration: underline; }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Kart Bileseni */
.card {
    background: var(--color-background);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--color-surface);
}
.card-body { padding: 16px 20px; }
.card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title a { color: var(--color-text); }
.card-title a:hover { color: var(--color-primary); }
.card-excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
}
.card-meta .category {
    background: var(--color-surface);
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Hero Card */
.hero-card { grid-column: 1 / -1; }
.hero-card .card-img { height: 400px; }
.hero-card .card-title { font-size: 24px; }
.hero-card .card-excerpt { font-size: 16px; -webkit-line-clamp: 3; }

/* Horizontal Card */
.card-horizontal { display: grid; grid-template-columns: 280px 1fr; }
.card-horizontal .card-img { height: 100%; min-height: 180px; }

/* Card Grid */
.card-grid { display: grid; gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Haber Detay */
.article-header { padding: 40px 0 24px; max-width: 800px; }
.article-header h1 { font-size: 2.2rem; margin-bottom: 16px; letter-spacing: -0.5px; }
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--color-text-secondary);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}
.article-featured-img {
    width: 100%;
    border-radius: 12px;
    margin: 24px 0;
    max-height: 500px;
    object-fit: cover;
}
.article-content {
    max-width: 800px;
    font-size: 17px;
    line-height: 1.8;
}
.article-content p { margin-bottom: 1.2rem; }
.article-content h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.article-content h3 { margin: 1.5rem 0 0.8rem; font-size: 1.2rem; }
.article-content img { border-radius: 8px; margin: 1.5rem 0; }
.article-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 12px 20px;
    margin: 1.5rem 0;
    background: var(--color-surface);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all 0.15s;
}
.tag:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Share Buttons */
.share-buttons { display: flex; gap: 8px; margin: 24px 0; }
.share-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.facebook { background: #4267B2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.copy { background: var(--color-text-secondary); }

/* Related Articles */
.related-section { margin: 48px 0; }
.related-section h2 { margin-bottom: 20px; }

/* Sidebar */
.sidebar { position: sticky; top: 68px; }
.sidebar-widget {
    background: var(--color-background);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-widget h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid var(--color-surface); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--color-text); font-size: 14px; font-weight: 500; }
.sidebar-list a:hover { color: var(--color-primary); }
.sidebar-list .count { float: right; font-size: 12px; color: var(--color-text-secondary); background: var(--color-surface); padding: 2px 8px; border-radius: 10px; }

/* Footer */
.footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
    margin-top: 48px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,0.6); font-size: 14px; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; }

/* Sayfalama */
.pagination { display: flex; gap: 4px; justify-content: center; padding: 32px 0; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: all 0.15s;
}
.pagination a:hover { background: var(--color-surface); }
.pagination .active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Arama */
.search-hero {
    text-align: center;
    padding: 48px 0 32px;
}
.search-hero h1 { margin-bottom: 20px; }
.search-form { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.15s;
}
.search-form input:focus { outline: none; border-color: var(--color-primary); }
.search-form button {
    padding: 12px 28px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.search-form button:hover { background: var(--color-secondary); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease; }
.slide-up { animation: slideUp 0.4s ease; }

/* Responsive */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .card-horizontal { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .navbar .container { padding: 0 16px; }
    .navbar-nav { display: none; }
    .navbar-nav.open { display: flex; flex-direction: column; position: absolute; top: 52px; left: 0; right: 0; background: var(--color-background); border-bottom: 1px solid var(--color-border); padding: 8px 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .menu-toggle { display: block; }
    .navbar-search input { width: 140px; }
    .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
    .hero-card .card-img { height: 240px; }
    .hero-card .card-title { font-size: 20px; }
    .card-horizontal { grid-template-columns: 1fr; }
    .card-horizontal .card-img { height: 200px; }
    .footer-grid { grid-template-columns: 1fr; }
    h1 { font-size: 1.6rem; }
    .article-header h1 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .navbar-search { display: none; }
    .search-form { flex-direction: column; }
    .share-buttons { flex-wrap: wrap; }
}

/* Dark Mode */
.dark-mode {
    --color-background: #1C1C1E;
    --color-surface: #2C2C2E;
    --color-text: #F5F5F7;
    --color-text-secondary: #98989D;
    --color-border: #38383A;
}
.dark-mode .navbar {
    background: rgba(28,28,30,0.8);
    border-bottom-color: var(--color-border);
}
.dark-mode .footer { background: #000; }
@media (prefers-color-scheme: dark) {
    html:not(.light-mode) {
        --color-background: #1C1C1E;
        --color-surface: #2C2C2E;
        --color-text: #F5F5F7;
        --color-text-secondary: #98989D;
        --color-border: #38383A;
    }
}
