/* ===================================================
   GRAM MÜHENDİSİ - Sade & Mobil Öncelikli CSS
   =================================================== */

/* --- Reset & Değişkenler --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand Colors */
    --primary: #E67E22;
    --primary-dark: #D35400;
    --primary-light: rgba(230, 126, 34, 0.15);

    /* Dark Theme Variables */
    --bg-body: #0F172A;
    --bg-surface: #1E293B;
    --bg-surface-alt: #334155;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #334155;

    /* Semantic Colors */
    --red: #EF4444;
    --red-bg: rgba(239, 68, 68, 0.15);
    --green: #10B981;
    --green-bg: rgba(16, 185, 129, 0.15);
    --yellow: #F59E0B;
    --yellow-bg: rgba(245, 158, 11, 0.15);

    /* Old specific hardcodes translated */
    --dark: #1a1a2e;
    /* Used for specific buttons / hero */
    --dark2: #16213e;

    /* UI Variables */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Genel SVG Ayarları --- */
svg {
    display: inline-block;
    vertical-align: middle;
}

.svg-inline {
    margin-right: 6px;
    vertical-align: text-bottom;
}

.text-primary {
    color: var(--primary);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

main,
.section:last-of-type {
    flex: 1;
}

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

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

/* --- Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Header (Sade) --- */
.header {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--primary);
}

/* Hamburger */
.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    -webkit-tap-highlight-color: transparent;
}

.menu-btn i {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger to X Animation when open */
.menu-btn.open i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.open i:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn.open i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 16px;
    z-index: 99;
    overflow-y: auto;

    /* Animation base */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

.nav a {
    display: block;
    padding: 16px 20px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    transition: 0.2s;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.theme-toggle-btn {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    margin-right: 16px;
    box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Hero --- */
.hero {
    position: relative;
    background: var(--dark);
    color: #fff;
    padding: 0 0 100px;
    text-align: center;
    border-radius: 0 0 32px 32px;
    margin-bottom: 24px;
    height: calc(100vh - 72px);
    height: calc(var(--vh, 100vh) - 72px);
    height: calc(100dvh - 72px);
    /* Exact fit to viewport minus header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    z-index: -1;
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero h1 em {
    color: var(--primary);
    font-style: normal;
}

.hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto 20px;
}

.hero-social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* Prevents overflow issues */
    gap: 12px;
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    /* Modern pill shape */
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-social a svg {
    flex-shrink: 0;
    /* Keeps exact icon size */
}

.hero-social a:hover {
    background: #fff;
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Scroll Indicator (Hero Alt) --- */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.scroll-indicator:hover {
    color: #fff;
    transform: translateX(-50%) translateY(-4px);
}

.scroll-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: scrollPulse 2.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-icon {
    border-color: var(--primary);
    background: rgba(230, 126, 34, 0.2);
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.3);
}

.scroll-icon svg {
    animation: searchWiggle 3s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.scroll-arrow {
    animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
}

@keyframes searchWiggle {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-8deg) scale(1.05);
    }

    50% {
        transform: rotate(5deg) scale(1);
    }

    75% {
        transform: rotate(-3deg) scale(1.02);
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(6px);
        opacity: 0.5;
    }
}

/* --- Parallax Wrapper --- */
.parallax-wrapper {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/parallax.png') center center / cover no-repeat;
    background-attachment: fixed;
    filter: blur(12px);
    -webkit-filter: blur(12px);
    z-index: 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
}

/* Mobile: transform-based parallax for background */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
        background-position: center top;
        top: -20%;
        bottom: -20%;
        will-change: transform;
    }
}

/* --- Section --- */
.section {
    padding: 32px 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.section-title svg {
    flex-shrink: 0;
}

/* --- Kategori Chips --- */
.categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cat-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cat-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* --- Kategori Kartları (Ana Sayfa) --- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    justify-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    min-width: 0;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.cat-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), 0 8px 24px rgba(230, 126, 34, 0.2);
    background: var(--bg-surface);
}

.cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-icon {
    transform: scale(1.1);
}

.cat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cat-grid {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        padding-top: 8px;
        padding-bottom: 12px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .cat-grid::-webkit-scrollbar {
        display: none;
    }

    .cat-card {
        padding: 14px 8px;
        min-width: 88px;
        width: auto;
        flex-shrink: 0;
    }

    .cat-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .cat-icon svg {
        width: 22px;
        height: 22px;
    }

    .cat-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .cat-card {
        padding: 12px 6px;
        gap: 8px;
        min-width: 78px;
    }

    .cat-icon {
        width: 42px;
        height: 42px;
    }
}

/* --- Post Kartları --- */
.posts-grid {
    display: grid;
    gap: 16px;
}

.post-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.post-card-body {
    padding: 20px;
}

.post-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 12px;
}

.post-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.post-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 12px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
}

.verdict-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}

.verdict-fail {
    background: var(--red-bg);
    color: var(--red);
}

.verdict-pass {
    background: var(--green-bg);
    color: var(--green);
}

.verdict-warning {
    background: var(--yellow-bg);
    color: var(--yellow);
}

/* --- Ağırlık Sonuç Kutusu (Blog Detay) --- */
.weight-box {
    background: linear-gradient(135deg, var(--dark), var(--dark2));
    border-radius: var(--radius);
    padding: 20px;
    color: var(--white);
    margin: 20px 0;
}

.weight-box h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.weight-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 12px;
}

.weight-item label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.weight-item span {
    font-size: 22px;
    font-weight: 800;
}

.weight-item span.fail {
    color: var(--red);
}

.weight-item span.pass {
    color: var(--green);
}

.weight-item span.warn {
    color: var(--yellow);
}

/* --- Blog Detay İçerik --- */
.article-content {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.article-content h2 {
    font-size: 19px;
    margin: 24px 0 12px;
    color: var(--text-main);
}

.article-content h3 {
    font-size: 17px;
    margin: 20px 0 10px;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 14px;
    font-size: 15.5px;
    color: var(--text-main);
}

.article-content ul,
.article-content ol {
    margin: 12px 0 12px 24px;
    color: var(--text-main);
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    background: var(--primary-light);
    margin: 20px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-main);
}

/* --- Video Embed --- */
.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 16px 0;
    background: #000;
}

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

/* --- Form --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--bg-body);
    /* Slightly inset feeling */
    color: var(--text-main);
    appearance: none;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(230, 126, 34, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-dark {
    background: var(--text-main);
    color: var(--bg-surface);
}

.btn-dark:hover {
    background: var(--text-muted);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* --- CTA Banner --- */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.cta h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.cta p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* --- Footer --- */
.footer {
    background: var(--bg-surface);
    color: var(--text-muted);
    padding: 32px 0;
    text-align: center;
    font-size: 13.5px;
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

/* --- Floating Contact Bubble --- */
.contact-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.fab-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.fab-toggle:hover {
    transform: scale(1.08) translateY(-4px);
}

.fab-menu {
    display: none;
    position: absolute;
    bottom: 72px;
    right: 0;
    background: var(--bg-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    min-width: 200px;
    border: 1px solid var(--border);
}

.fab-menu.open {
    display: block;
    animation: fadeUp 0.2s;
}

.fab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 14.5px;
    font-weight: 500;
    transition: var(--transition);
}

.fab-item:hover {
    background: var(--bg-surface-alt);
    transform: translateX(-4px);
}

.fab-item .fi {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Bildirim / Alert --- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14.5px;
    font-weight: 500;
}

.alert-success {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* --- Share Bar --- */
.share-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.share-bar a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    transition: var(--transition);
}

.share-bar a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.share-tw {
    background: #1DA1F2;
}

.share-wa {
    background: #25D366;
}

.share-fb {
    background: #1877F2;
}

/* --- Hakkımızda --- */
.about-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.about-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.about-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Tabs --- */
.tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 6px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font);
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeUp 0.3s ease;
}

/* --- Bildirim Kartları --- */
.report-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.report-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.report-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.report-card p strong {
    color: var(--text-main);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 600;
}

.status-pending {
    background: var(--yellow-bg);
    color: var(--yellow);
}

.status-investigating {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-confirmed {
    background: var(--green-bg);
    color: var(--green);
}

.status-rejected {
    background: var(--red-bg);
    color: var(--red);
}

/* --- Admin Panel --- */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-body);
}

.login-box {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--border);
}

.login-box h1 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.admin-wrap {
    display: flex;
    min-height: 100vh;
    background: var(--bg-body);
}

.admin-sidebar {
    width: 260px;
    background: #0f172a;
    /* Keep dark regardless of theme for sidebar mapping prestige */
    color: #fff;
    padding: 24px 0;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.admin-sidebar h2 {
    font-size: 18px;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-sidebar a {
    display: block;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14.5px;
    transition: 0.2s;
    font-weight: 500;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary);
}

.admin-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card .num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.stat-card .label {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 14px;
    border: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-surface-alt);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.data-table tr:hover td {
    background: var(--bg-body);
}

/* --- Helpers --- */
.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.hidden {
    display: none !important;
}

/* --- Loading --- */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-top: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 96px;
    right: 33px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--dark);
    color: #ffffff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.scroll-top.show {
    display: flex;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state .emoji {
    font-size: 40px;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

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

/* Tablet (768px+) */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .header-inner {
        height: 72px;
    }

    .logo img {
        height: 56px;
    }

    .logo {
        font-size: 20px;
    }

    .menu-btn {
        display: none;
    }

    .nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        gap: 4px;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-left: auto;
        margin-right: 16px;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        overflow-y: visible;
        height: auto;
    }

    .theme-toggle-btn {
        margin-left: 16px;
        margin-right: 0;
    }

    .nav a {
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 14px;
    }

    .hero {
        padding: 0;
        height: calc(100vh - 72px);
        height: calc(100dvh - 72px);
        min-height: 500px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 38px;
    }

    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Küçük telefon (<360px) */
@media (max-width: 359px) {
    body {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 20px;
    }

    .hero p {
        font-size: 13px;
    }

    .post-card h3 {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }
}

/* Admin - Mobil */
@media (max-width: 767px) {

    /* --- Sidebar --- */
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 200;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 260px;
        transform: translateX(0);
    }

    .admin-sidebar.open {
        left: 0;
        transform: translateX(0);
    }

    /* Sidebar overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 199;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .sidebar-overlay.open {
        display: block;
        animation: fadeIn 0.2s ease;
    }

    /* Close button inside sidebar */
    .menu-close {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        font-size: 22px;
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Sidebar toggle hamburger always visible on mobile */
    #sidebarToggle {
        display: inline-flex !important;
    }

    /* --- Admin Main --- */
    .admin-main {
        padding: 16px;
        width: 100%;
        min-width: 0;
    }

    /* --- Top Header --- */
    #topHeader {
        font-size: 18px !important;
    }

    /* --- Stat Grid --- */
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px 10px;
    }

    .stat-card .num {
        font-size: 24px;
    }

    .stat-card .label {
        font-size: 12px;
    }

    /* --- Data Tables --- */
    .table-scroll-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius);
    }

    .data-table {
        font-size: 12px;
        min-width: 480px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }

    .data-table td:first-child {
        white-space: normal;
        min-width: 140px;
    }

    /* --- Editor Form Grids --- */
    .editor-grid-2,
    .editor-grid-3,
    .editor-grid-emoji {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* --- Message Cards (mesajlar) --- */
    .report-card>div:first-child {
        flex-direction: column;
        gap: 10px;
    }

    .report-card>div:first-child>div:last-child {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    /* --- Hızlı İşlemler --- */
    .quick-actions-wrap {
        flex-direction: column;
    }

    .quick-actions-wrap .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Ayarlar max-width kaldır --- */
    #sec-settings .about-card {
        max-width: 100% !important;
    }

    /* --- Section headerlardaki flex --- */
    .section-header-flex {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start !important;
    }

    /* --- Login box --- */
    .login-box {
        padding: 28px 20px;
    }

    .login-box h1 {
        font-size: 20px;
    }
}

/* Küçük telefon (<360px) - Admin ek ayarlar */
@media (max-width: 359px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .stat-card .num {
        font-size: 20px;
    }

    .admin-main {
        padding: 12px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Sidebar overlay - desktop'ta gizle */
@media (min-width: 768px) {
    .sidebar-overlay {
        display: none !important;
    }

    .menu-close {
        display: none !important;
    }

    #sidebarToggle {
        display: none !important;
    }
}