@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-dark: #0f0f12;
    --bg-card: #18181f;
    --text-main: #e2e2e2;
    --text-muted: #8b8b9b;
    
    /* Neon Accents */
    --accent-primary: #7aa2f7; /* Neon Mavi */
    --accent-malware: #ff5555; /* Neon Kırmızı */
    --accent-exploit: #f1fa8c; /* Neon Sarı */
    
    --border-light: rgba(255, 255, 255, 0.08);
    --glow: 0 0 10px rgba(122, 162, 247, 0.3);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, .logo, .nav-link, code, pre, .btn, .btn-access, .upload-text { 
    font-family: 'JetBrains Mono', monospace; 
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* --- HEADER & NAV --- */
header {
    background: rgba(15, 15, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { 
    color: var(--accent-primary); 
    font-weight: 700; 
    font-size: 1.4rem; 
    text-shadow: var(--glow);
}

.nav-link {
    margin-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.3s;
}
.nav-link:hover { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.5); }

/* --- MAIN LAYOUT --- */
.container { max-width: 1200px; margin: 3rem auto; padding: 0 20px; }

/* --- CARDS (Blog Grid) --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-light);
}

/* Editör vb. sayfalarda kartların iç boşluğu için */
.card:not(.posts-grid .card) {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: var(--accent-primary);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-light);
}

.card-body { padding: 1.5rem; }
.card-title { margin-top: 0; color: #fff; font-size: 1.2rem; }
.card-date { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 10px; }
.read-more { display: inline-block; margin-top: 15px; color: var(--accent-primary); font-weight: 600; font-size: 0.9rem; }

/* --- FORM ELEMENTS --- */
input[type="text"], 
input[type="password"], 
textarea, 
select {
    width: 100%;
    background: #0f0f12;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus { 
    outline: none; 
    border-color: var(--accent-primary); 
    box-shadow: 0 0 5px rgba(122, 162, 247, 0.2);
}

/* Genel Buton */
.btn {
    background: var(--accent-primary);
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    transition: filter 0.2s;
}
.btn:hover { filter: brightness(1.1); }

/* --- LOGIN BUTTON (Access_) --- */
.btn-access {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-access:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(122, 162, 247, 0.6);
}

/* --- DASHBOARD STYLES --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.admin-table-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-light);
}

.admin-table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0 10px;
}

.admin-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-light);
}

.admin-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s, background 0.2s;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.005);
}

.admin-table td { padding: 20px; vertical-align: middle; }
.admin-table td:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; font-weight: 600; color: #fff; }
.admin-table td:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; text-align: right; }

/* Dashboard Badges & Buttons */
.badge { padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; }
.badge.malware { background: rgba(255, 85, 85, 0.15); color: var(--accent-malware); border: 1px solid rgba(255, 85, 85, 0.3); }
.badge.exploit { background: rgba(241, 250, 140, 0.15); color: var(--accent-exploit); border: 1px solid rgba(241, 250, 140, 0.3); }
.badge.general { background: rgba(122, 162, 247, 0.15); color: var(--accent-primary); border: 1px solid rgba(122, 162, 247, 0.3); }

.btn-action { padding: 8px 15px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; border: none; cursor: pointer; margin-left: 5px; font-family: 'Inter', sans-serif; }
.btn-edit { background: rgba(122, 162, 247, 0.1); color: var(--accent-primary); border: 1px solid rgba(122, 162, 247, 0.2); }
.btn-edit:hover { background: var(--accent-primary); color: #000; }
.btn-delete { background: rgba(255, 85, 85, 0.1); color: var(--accent-malware); border: 1px solid rgba(255, 85, 85, 0.2); }
.btn-delete:hover { background: var(--accent-malware); color: #fff; }

.btn-new { background: var(--accent-primary); color: #000; padding: 10px 25px; border-radius: 6px; font-weight: bold; display: inline-flex; align-items: center; }
.btn-new:hover { opacity: 0.9; }

/* --- UPLOAD ZONE & GALLERY --- */
.upload-area {
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.upload-area:hover { border-color: var(--accent-primary); background: rgba(122, 162, 247, 0.05); }
.upload-icon { font-size: 3rem; color: var(--text-muted); margin-bottom: 15px; display: block; }
.file-input-hidden { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; }

/* Galeri Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #000;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.05); border-color: var(--accent-primary); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; }

.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.8);
    padding: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.copy-btn {
    background: var(--accent-primary);
    border: none;
    color: #000;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* --- MODALS (POPUP) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

/* --- EDITOR LAYOUT (2 Columns) --- */
.editor-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 850px) {
    .editor-layout { grid-template-columns: 1fr; }
}

.img-preview-box {
    width: 100%;
    height: 150px;
    border: 1px dashed var(--border-light);
    border-radius: 6px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.img-preview-box img { width: 100%; height: 100%; object-fit: cover; }

.log-row:hover {
    background: rgba(255, 85, 85, 0.05) !important;
    border-left: 2px solid var(--accent-malware);
}

/* --- MARKDOWN & CODE BLOCKS --- */
.post-header-img { width: 100%; height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.post-content img { max-width: 100%; border-radius: 8px; margin: 1rem 0; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

pre {
    background: #111;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
    overflow-x: auto;
    color: #f8f8f2;
}
code { font-family: 'JetBrains Mono', monospace; color: #ff79c6; }