:root {
    --bg-dark: #0a0f1d;
    --bg-darker: #050811;
    --primary-blue: #1d4ed8;
    --neon-blue: #00f2fe;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(29, 78, 216, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(0, 242, 254, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 60px;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar .logo svg {
    color: var(--primary-blue);
}

.btn-primary {
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Blog Hero */
.blog-header {
    text-align: center;
    margin-bottom: 80px;
}

.blog-header h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    margin-bottom: 20px;
}

.blog-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: var(--primary-blue);
    text-shadow: 0 0 40px rgba(29, 78, 216, 0.4);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    background: var(--glass-bg-hover);
    border-color: var(--primary-blue);
}

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

.post-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.post-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.post-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Single Post View */
.article-view {
    max-width: 800px;
    margin: 0 auto 100px;
}

.article-hero {
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 40px;
    height: 400px;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 40px;
}

.article-body {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.article-body h2 {
    font-family: var(--font-serif);
    color: var(--text-white);
    margin: 40px 0 20px;
}

.article-body h3 {
    color: var(--neon-blue);
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 40px;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--text-white);
}

footer {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .blog-header h1 { font-size: 2.5rem; }
    .article-title { font-size: 2.5rem; }
}

/* Discrete Ad Styles (Even more subtle) */
.discrete-ad {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--primary-blue);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 35px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.discrete-ad:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.discrete-ad-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    opacity: 0.8;
}

.discrete-ad-content {
    flex-grow: 1;
}

.discrete-ad-tag {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    display: block;
    opacity: 0.6;
}

.discrete-ad-title {
    font-family: var(--font-sans); /* Use sans for more discretion */
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-white);
    line-height: 1.2;
}

.discrete-ad-text {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.3;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .discrete-ad {
        padding: 12px 15px;
        gap: 15px;
    }
    .discrete-ad-img {
        width: 50px;
        height: 50px;
    }
    .discrete-ad-title {
        font-size: 0.95rem;
    }
}
