:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary-color: #ffd700; /* Gold */
    --primary-hover: #e5c100;
    --secondary-color: #c0c0c0; /* Silver */
    --accent-color: #ff4757;
    --font-heading: "Inter", sans-serif;
    --font-body: "Inter", sans-serif;
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.main-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn-primary):hover::after {
    width: 100%;
}

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

/* Specific selector to override .main-nav a color */
.main-nav .btn-primary, .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #000 !important; /* Force Black Text */
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    border: none;
    text-decoration: none !important; /* Ensure no underline */
}

/* Remove underline effect from button */
.main-nav .btn-primary::after {
    display: none;
}

.main-nav .btn-primary:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #000 !important;
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("../images/hero-bg.jpg"); /* Fallback or image */
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #333;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    background: linear-gradient(to right, #ffd700, #c0c0c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.btn-primary-large {
    background-color: var(--primary-color);
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary-large:hover {
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.post-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #333;
}

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

.post-card-content {
    padding: 25px;
}

.post-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.read-more {
    font-weight: 600;
    color: var(--secondary-color);
}

.read-more:hover {
    color: var(--primary-color);
}

/* Single Post */
.post-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #fff;
}

.post-body {
    font-size: 1.1rem;
    color: #d0d0d0;
}

.post-body h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #fff;
}

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

.post-body ul,
.post-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body a {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 3px;
}

.post-body img {
    border-radius: 10px;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer {
    background-color: #0a0a0a;
    padding: 60px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    opacity: 0.8;
}

.footer-links h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-disclaimer {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    .main-nav a {
        font-size: 0.8rem;
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .post-container {
        margin: 30px auto;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn-primary-large {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
