/*
Theme Name: Sparkhes Blog Theme
Theme URI: https://sparkhes.com
Author: Sparkhes AI Team
Author URI: https://sparkhes.com
Description: Custom WordPress theme with solid black header, crisp white body background, black text, Outfit typography, and featured images support.
Version: 2.2.0
License: GNU General Public License v2 or later
Text Domain: sparkhes-theme
*/

:root {
    --bg-color: #ffffff;
    --header-bg: #000000;
    --footer-bg: #000000;
    --text-heading: #000000;
    --text-body: #111827;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-border-hover: #cbd5e1;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1200px;
    --transition-speed: 0.25s ease;
}

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

html,
body {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    font-family: var(--font-main) !important;
    line-height: 1.6;
    letter-spacing: -0.2px;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-speed);
}

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

.container {
    width: calc(100% - 32px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* =========================================
   1. HEADER (BLACK)
   ========================================= */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: #000000 !important;
    background-color: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 0;
    color: #ffffff !important;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    color: #ffffff !important;
}

.logo-mark {
    width: 28px;
    height: 28px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8 !important;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    transition: var(--transition-speed);
}

.btn-cta:hover {
    background: #f1f5f9 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* =========================================
   2. MAIN CONTENT (WHITE BODY & BLACK TEXT)
   ========================================= */
main,
.main-content-wrapper,
.hero-section,
.posts-section,
.single-post-container {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    flex: 1;
}

/* Hero Section */
.hero-section {
    padding: 72px 0 36px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #000000 !important;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 18px;
    color: #000000 !important;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #475569 !important;
    max-width: 650px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* Posts Grid */
.posts-section {
    padding: 32px 0 80px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.post-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-speed);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.post-card:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Post Card Thumbnail */
.post-thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.post-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.post-card:hover .post-thumbnail-img {
    transform: scale(1.04);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #64748b !important;
    margin-bottom: 12px;
    font-weight: 500;
}

.post-meta a {
    color: #64748b !important;
}

.post-meta a:hover {
    color: #000000 !important;
}

.post-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: #000000 !important;
}

.post-title a {
    color: #000000 !important;
}

.post-title a:hover {
    color: #2563eb !important;
}

.post-excerpt {
    font-size: 0.96rem;
    color: #475569 !important;
    margin-bottom: 24px;
    line-height: 1.65;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.read-more-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: #000000 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more-link:hover {
    color: #2563eb !important;
}

/* =========================================
   SINGLE POST PAGE & FEATURED IMAGE
   ========================================= */
.single-post-container {
    max-width: 840px;
    margin: 48px auto 80px;
    padding: 0 16px;
    background: #ffffff !important;
}

.single-post-header {
    margin-bottom: 28px;
    text-align: left;
}

.single-post-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
    letter-spacing: -1px !important;
    margin-bottom: 16px !important;
    color: #000000 !important;
}

.single-featured-image-wrapper {
    width: 100%;
    max-height: 480px;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto 36px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.single-featured-image {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
}

.entry-content {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #1f2937 !important;
    background: #ffffff !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #000000 !important;
    font-weight: 700;
    margin: 36px 0 16px;
}

.entry-content p {
    margin-bottom: 22px;
    color: #374151 !important;
    font-size: 1.05rem;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0 24px 24px;
    color: #374151 !important;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content blockquote {
    border-left: 4px solid #000000;
    padding: 16px 24px;
    margin: 28px 0;
    font-style: italic;
    color: #111827 !important;
    background: #f8fafc !important;
    border-radius: 0 8px 8px 0;
}

/* CTA Box Inside Single Post */
.cta-box {
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 16px;
    padding: 36px;
    margin: 48px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.cta-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff !important;
}

.cta-box p {
    color: #94a3b8 !important;
    margin-bottom: 24px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn-cta {
    background: #ffffff !important;
    color: #000000 !important;
}

/* =========================================
   3. FOOTER (BLACK)
   ========================================= */
footer.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px 0;
    background: #000000 !important;
    background-color: #000000 !important;
    color: #94a3b8 !important;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: #94a3b8 !important;
}

.footer-links a:hover {
    color: #ffffff !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero-section {
        padding: 48px 0 24px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
