/*
 * Nutek Security - New Look
 * Greenish-light blue, hazy violet/purples
 */

:root {
    --background-color: #2a2a3e; /* Deep, hazy violet */
    --text-color: #e0e0e0; /* Light grey for readability */
    --primary-accent: #6cffc8; /* Greenish-light blue */
    --secondary-accent: #a485e1; /* Lighter hazy violet/purple */
    --container-bg: #3a3a50; /* Slightly lighter violet for containers */
    --border-color: #4a4a62;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Roboto Condensed', 'Segoe UI', 'Arial Narrow', sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* --- Header --- */
header {
    background-color: var(--container-bg);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header h1 a {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -1px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--primary-accent);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-accent);
    font-weight: 600;
    letter-spacing: -0.5px;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.75rem; margin-bottom: 0.6rem; }

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
    color: #a6ffdf; /* A lighter shade for hover */
}

/* --- Blog Specifics --- */
.blog-list {
    list-style: none;
    padding: 0;
}

.blog-list-item {
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.blog-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.blog-list-item h2 a {
    color: var(--secondary-accent);
    text-decoration: none;
}

.blog-list-item h2 a:hover {
    color: var(--primary-accent);
}

.blog-post-meta {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.blog-post-content {
    line-height: 1.6;
}

.blog-content img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Allows margin auto for centering */
    margin: 1.5em auto; /* Top/bottom margin and center horizontally */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* --- Tags and Categories --- */
.tag, .category {
    display: inline-block;
    padding: 0.3em 0.7em;
    margin-right: 0.5em;
    margin-bottom: 0.5em; /* For vertical spacing if they wrap */
    background-color: var(--secondary-accent);
    color: var(--background-color); /* Dark text on light button */
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Prevent tags from breaking */
    transition: background-color 0.2s ease;
}

.tag:hover, .category:hover {
    background-color: var(--primary-accent);
    color: var(--background-color);
    cursor: pointer;
}

/* --- Code Blocks --- */
.code-language {
    background-color: var(--container-bg); /* Use a background similar to containers */
    color: var(--primary-accent); /* Use primary accent for text */
    padding: 0.5em 1em;
    margin-bottom: -1rem; /* Pull it closer to the code block */
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    text-align: right; /* Align language to the right */
    border-bottom: 1px solid var(--border-color); /* Separator from code block */
}

pre {
    background-color: #1e1e2e; /* Even darker violet */
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
}

code {
    background-color: #1e1e2e;
    color: var(--primary-accent);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Fira Code', 'Courier New', monospace;
}

pre code {
    background-color: transparent;
    padding: 0;
}


/* --- Footer --- */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--container-bg);
    border-top: 2px solid var(--border-color);
    font-size: 0.9rem;
    color: #a0a0a0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        gap: 1rem;
    }

    header nav ul {
        justify-content: center;
        width: 100%;
    }
}
