/* ═══════════════════════════════════════════════
   Global CSS — Design Tokens, Reset, Tipografi
   ═══════════════════════════════════════════════ */

:root {
    /* ─── Renkler ─── */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(15, 23, 42, 0.75);
    --bg-glass-hover: rgba(15, 23, 42, 0.9);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-blue-glow: rgba(59, 130, 246, 0.25);
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;

    /* ─── Genel ─── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--accent-blue-glow);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* ─── Layout ─── */
    --container-max: 1200px;
    --container-padding: 20px;
    --header-height: 64px;
    --sidebar-width: 350px;

    /* ─── Font ─── */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-blue);
}

ul,
ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ─── Yardımcı ─── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ─── Skip Link (Erişilebilirlik & SEO) ─── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--accent-blue);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: top var(--transition-fast);
}
.skip-link:focus {
    top: 16px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ─── Klavye odaklanma (erişilebilirlik) ─── */
:focus {
    outline: none;
}
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* ─── Hareket azaltma tercihi ─── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ─── Selection ─── */
/* ─── Layout Sistemi ─── */
.site-layout {
    display: flex;
    gap: 24px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 24px 20px;
    min-height: calc(100vh - var(--header-height) - 80px);
}

/* contain: layout/style → tarayıcı layout hesaplamalarını sınırlar (performans) */
.site-content {
    flex: 1;
    min-width: 0;
    contain: layout style;
}

.site-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .site-layout {
        flex-direction: column;
        padding: 24px 15px;
        overflow-x: hidden;
    }

    .site-sidebar {
        width: 100%;
        padding: 0;
    }

    .site-content {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .site-layout {
        padding: 20px 15px;
    }

    .site-main {
        width: 100%;
        overflow-x: hidden;
    }
}

::selection {
    background: var(--accent-blue);
    color: #fff;
}

/* ─── Anasayfa: Bugün Türkiye & Hafta Sonu bloğu ─── */
.anasayfa-gunun-ozeti {
    margin: 32px 0;
}

.gunun-ozeti-inner {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.35));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    backdrop-filter: blur(10px);
}

.gunun-ozeti-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.gunun-ozeti-title i {
    color: var(--accent-blue);
}

.gunun-ozeti-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gunun-ozeti-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.gunun-ozeti-cta-primary {
    background: var(--accent-blue);
    color: #fff;
    border: 1px solid transparent;
}

.gunun-ozeti-cta-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--accent-blue-glow);
}

.gunun-ozeti-cta-primary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.gunun-ozeti-cta-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gunun-ozeti-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.gunun-ozeti-cta-secondary:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* ─── Single post (entry-title + paylaşım) ─── */
.single-entry .entry-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.single-entry .entry-title {
    font-family: var(--font-family);
    font-size: clamp(1.05rem, 2.8vw, 1.25rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.single-entry .entry-share {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.single-entry .entry-share-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 15px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.25s ease,
                background 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.single-entry .entry-share-btn i {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.single-entry .entry-share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.single-entry .entry-share-btn:hover i {
    transform: scale(1.1);
}

.single-entry .entry-share-copy:hover .entry-share-copy-icon:not([hidden]),
.single-entry .entry-share-copy:hover .entry-share-check-icon:not([hidden]) {
    transform: translate(-50%, -50%) scale(1.1);
}

.single-entry .entry-share-btn:active {
    transform: translateY(-1px) scale(1.02);
    transition-duration: 0.1s;
}

.single-entry .entry-share-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.single-entry .entry-share-twitter:hover {
    color: #fff;
    background: #0f0f0f;
    border-color: #262626;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.single-entry .entry-share-facebook:hover {
    color: #fff;
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.single-entry .entry-share-whatsapp:hover {
    color: #fff;
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.single-entry .entry-share-copy:hover {
    color: var(--accent-blue);
    background: var(--accent-blue-glow);
    border-color: var(--accent-blue);
    box-shadow: 0 6px 20px var(--accent-blue-glow);
}

.single-entry .entry-share-copy {
    position: relative;
}

.single-entry .entry-share-copy .entry-share-copy-icon,
.single-entry .entry-share-copy .entry-share-check-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.single-entry .entry-share-copy .entry-share-check-icon[hidden],
.single-entry .entry-share-copy .entry-share-copy-icon[hidden] {
    display: none !important;
}

.single-entry .entry-share-copy.copied {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--accent-green);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.single-entry .entry-content {
    margin-top: 0;
    padding-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .single-entry .entry-share-btn,
    .single-entry .entry-share-btn i {
        transition-duration: 0.01ms;
    }
    .single-entry .entry-share-btn:hover {
        transform: none;
    }
    .single-entry .entry-share-btn:hover i {
        transform: none;
    }
}

@media (max-width: 480px) {
    .single-entry .entry-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
        gap: 10px;
    }

    .single-entry .entry-title {
        font-size: 1rem;
        order: 1;
        width: 100%;
    }

    .single-entry .entry-share {
        order: 2;
        width: 100%;
        justify-content: flex-start;
    }

    .single-entry .entry-share-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 16px;
    }
}