/* css/style.css */
:root {
    --bg-color: #0f172a; /* Deep dark blue/gray for premium feel */
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gold: #fbbf24;
    --accent-gold-hover: #f59e0b;
    --border-color: #334155;
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-top: 0;
}
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent-gold-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.logo .accent {
    color: var(--accent-gold);
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}
.main-nav a {
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.main-nav a:hover {
    color: var(--accent-gold);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1618220179428-22790b46a013?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), var(--bg-color));
    backdrop-filter: blur(3px); /* blur effect */
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1s ease-out;
}
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}
.hero-content h1:hover {
    color: var(--accent-gold);
}
.hero-content p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}
.hero-content p:hover {
    color: var(--accent-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-primary:hover {
    background: var(--border-color);
    color: var(--accent-gold);
}
.btn-gold {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 4px 14px 0 rgba(251, 191, 36, 0.39);
}
.btn-gold:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    color: #000;
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Layouts */
.section-container {
    padding: 80px 0;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Post Cards */
.post-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}
.post-card-content {
    padding: 25px;
}
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.post-title a {
    color: var(--text-primary);
    font-size: 1.25rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.post-title a:hover,
.post-card:hover .post-title a {
    color: var(--accent-gold);
}
.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 15px 0;
}
.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}
.read-more:hover,
.post-card:hover .read-more {
    color: var(--accent-gold);
}

/* Single Article */
.article-page .post-header {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 40px;
}
.post-h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.cat-pill {
    background: var(--border-color);
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 10px;
}
.post-layout {
    display: flex;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}
.main-content {
    flex: 3;
}
.sidebar {
    flex: 1;
}

.article-body {
    font-size: 1.1rem;
    color: #e2e8f0;
}
.article-body h2 {
    font-size: 2rem;
    margin-top: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.article-body h3 {
    font-size: 1.5rem;
    margin-top: 30px;
}
.article-body p {
    margin-bottom: 20px;
}

/* Table of Contents */
.toc-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}
.toc-box h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.toc-box ul {
    list-style: none;
    padding-left: 0;
}
.toc-box li {
    margin-bottom: 8px;
}
.toc-box a {
    color: var(--text-secondary);
}
.toc-box a:hover {
    color: var(--accent-gold);
}

/* Product Blocks */
.product-showcase {
    margin-top: 60px;
}
.product-card {
    display: flex;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    transition: var(--transition);
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(251, 191, 36, 0.5);
}
.product-image {
    flex: 0 0 200px;
    margin-right: 30px;
}
.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 10px;
}
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.product-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}
.product-actions {
    margin-top: auto;
}
.secondary-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.secondary-link:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

/* Random Posts Section */
.random-posts-section {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}
.random-posts-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.random-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.random-post-card {
    display: flex;
    align-items: center;
    position: relative;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.random-post-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}
.random-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 1;
}
.random-post-title {
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    padding: 0 20px;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.random-post-card:hover .random-post-title {
    color: var(--accent-gold);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    margin-top: 80px;
    background: #0b1120;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-secondary);
}
.footer-links a:hover {
    color: var(--accent-gold);
}
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sidebar Widget */
.sidebar-widget {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Newsletter */
.newsletter-section {
    padding: 60px 0;
}
.newsletter-box {
    background: linear-gradient(135deg, var(--surface-color), #273449);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
    gap: 10px;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container { flex-direction: column; height: auto; padding: 15px 20px; gap: 15px; }
    .hero-content h1 { font-size: 2.5rem; }
    .post-layout { flex-direction: column; }
    .product-card { flex-direction: column; }
    .product-image { margin-right: 0; margin-bottom: 20px; flex: auto; }
    .footer-container { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}
