:root {
    --bg-color: #141414;
    --text-color: #e5e5e5;
    --primary-color: #ffd700;
    --secondary-color: #ffffff;
    --ad-bg: #1a1a1a;
}

html {
    background-color: var(--bg-color);
    color: var(--text-color);
}

p, h1, h2, h3, h4, span, div, li {
    font-family: "Inter", "Open Sans Condensed", sans-serif;
    color: var(--text-color);
}

body {
    font-size: 1.3em;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* HEADER & NAVIGATION */
header {
    background-color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#logo img {
    height: 50px;
    display: block;
}

#navbar {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

#navbar li {
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ADS SLOTS */
.ad-slot {
    background-color: var(--ad-bg);
    border: 1px dashed #333;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
}
.ad-top { width: 728px; height: 90px; max-width: 100%; }
.ad-feed { width: 100%; height: 100px; }

/* BLOG LAYOUT */
#title-container {
    text-align: center;
    padding: 60px 20px;
}

#title-container h1 {
    color: var(--primary-color);
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

#posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.post-box {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.post-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.post-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-title {
    padding: 20px 20px 5px 20px;
    margin: 0;
}

.post-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 700;
}

.post-description {
    padding: 0 20px 20px 20px;
    color: #bbb;
    font-size: 0.9em;
    line-height: 1.6;
}

.tags-container {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid #333;
}

.tags-container a {
    display: inline-block;
    background-color: #333;
    color: var(--text-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    text-decoration: none;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.tags-container a:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* SINGLE POST PAGE */
#post-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-container {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
}

#main-title {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

#post-description {
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 30px;
    font-style: italic;
}

.img-container img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-content {
    line-height: 1.8;
    color: #bbb;
    margin-bottom: 20px;
}

/* POST SIDEBAR */
.nav-container {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    height: fit-content;
}

.nav-container h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#tag-list, #categories-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

#tag-list li, #categories-list li {
    margin-bottom: 10px;
}

#tag-list a, #categories-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

#tag-list a:hover, #categories-list a:hover {
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #000;
    border-top: 2px solid var(--primary-color);
    margin-top: 60px;
}
