/*
Theme Name: QuadAVPro Fresh Theme
Author: Quadri Bakre
Version: 2.4
*/

:root {
    --bg-dark: #070a0e;   
    --accent-mint: #00FFCC; 
    --accent-teal-dark: #008060; 
    --text-white: #ffffff;
    --text-grey: #a0aec0;
    --font-apple: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

html { font-size: 1vw; }
@media (min-width: 1920px) { html { font-size: 19.2px; } }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark); color: var(--accent-mint);
    font-family: var(--font-apple); line-height: 1.6; 
    overflow-x: hidden; font-size: 1rem; -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .bold-text { font-weight: 800; font-family: var(--font-apple); }
a { color: var(--accent-mint); text-decoration: none; }

.container { width: 85%; max-width: 112.5rem; margin: 0 auto; }

/* --- CENTERED NAVIGATION & HEADER --- */
nav { 
    display: flex; 
    justify-content: center; /* Centers the main nav links */
    align-items: center; 
    padding: 3.125rem 0; 
    position: relative; /* Allows header-actions to pin to the right */
    margin-bottom: 2.5rem; 
}

.nav-links { display: flex; gap: 3.75rem; }

.nav-links a { 
    transition: color 0.2s, text-decoration 0.2s; 
    font-size: 1.2rem; 
    font-weight: 400; 
    font-family: var(--font-mono); 
    text-transform: none; 
    letter-spacing: normal;
    color: var(--accent-mint);
}

.nav-links a:hover { color: var(--text-white); }

.nav-links a.active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Header Actions (Search & Subscribe) pinned to the right */
.header-actions { 
    position: absolute; 
    right: 0; 
    display: flex; 
    align-items: center; 
    gap: 2rem; 
}

/* Search Bar */
.search-container { display: flex; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(0,255,204,0.3); border-radius: 4px; padding: 0.4rem 0.8rem; }
.search-container input { background: transparent; border: none; color: white; outline: none; width: 140px; font-family: var(--font-apple); font-size: 0.95rem; }
.search-container input::placeholder { color: #888; }
.search-container button { background: transparent; border: none; color: var(--accent-mint); cursor: pointer; display: flex; align-items: center; }

/* Subscribe Button */
.subscribe-btn { background-color: var(--accent-mint); color: var(--bg-dark); padding: 0.5rem 1.5rem; border-radius: 4px; font-weight: 800; font-size: 0.95rem; text-transform: uppercase; transition: all 0.2s; font-family: var(--font-mono); }
.subscribe-btn:hover { background-color: var(--text-white); color: var(--bg-dark); }

/* Fix Green Text Override */
.blog-feed-wrapper a, .light-bg-wrapper a { color: inherit; }
.blog-header-link { color: var(--accent-teal-dark) !important; font-weight: 800; }

/* --- Blog Feed (index.php) --- */
.blog-feed-wrapper { background-color: #ffffff; padding: 4rem; margin-bottom: 8rem; color: #111; }
.blog-header-link { font-size: 1.4rem; margin-bottom: 2.5rem; display: inline-block; text-transform: uppercase; letter-spacing: 0.05rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.blog-card { display: flex; flex-direction: column; cursor: pointer; }
.blog-img-wrapper { width: 100%; height: 16rem; overflow: hidden; margin-bottom: 1.5rem; background-color: #f4f4f4; border-radius: 4px; }
.blog-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-img-wrapper img { transform: scale(1.05); }

/* Featured Post */
.featured-post-wrapper { grid-column: 1 / -1; margin-bottom: 2rem; }
.featured-card { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
.featured-card .blog-img-wrapper { height: 26rem; margin-bottom: 0; }
.featured-text-content { display: flex; flex-direction: column; justify-content: center; }
.featured-card h3 { font-size: 2.5rem !important; margin-bottom: 1.5rem !important; }
.featured-card p { font-size: 1.1rem !important; }

/* Meta & Text */
.blog-meta-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; color: #666; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05rem; }
.blog-card h3 { color: #000; font-size: 1.6rem; line-height: 1.3; margin-bottom: 1rem; transition: color 0.2s; font-weight: 800; }
.blog-card:hover h3 { color: var(--accent-teal-dark); }
.blog-card p { color: #555; font-size: 1rem; line-height: 1.6; margin-bottom: 2rem; flex-grow: 1; }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 1rem; color: #888; font-size: 0.9rem; }
.blog-stats { display: flex; gap: 1rem; align-items: center; }
.blog-stats svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.heart-icon { color: #ff4a4a; }

/* --- Single Post (single.php) --- */
.light-bg-wrapper { background-color: #ffffff; width: 100%; padding: 5rem 0; }
.article-container { max-width: 48rem; margin: 0 auto; }
.back-link { font-size: 0.95rem; margin-bottom: 3rem; display: inline-block; color: var(--accent-teal-dark) !important; font-weight: bold; text-transform: uppercase; }
.back-link:hover { color: #111 !important; }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; font-size: 0.85rem; color: #777777; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05rem; }
.article-title { font-size: 2.5rem; line-height: 1.15; margin-bottom: 1.5rem; color: #111111; letter-spacing: -0.03rem; }
.article-hero { width: 100%; height: auto; margin-bottom: 1rem; border-radius: 4px; }
.article-caption { font-size: 0.8rem; text-align: center; margin-bottom: 3rem; color: #888888; }
.article-body h2, .article-body h3 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; color: #111111; letter-spacing: -0.02rem; }
.article-intro, .article-body p, .article-body ul li { font-size: 1.05rem; line-height: 1.7; color: #333333; font-weight: 400; }
.article-intro { font-size: 1.15rem; margin-bottom: 2.5rem; color: #222222; }
.article-body p { margin-bottom: 1.5rem; }
.article-body ul { list-style-type: none; margin-left: 0; margin-bottom: 2.5rem; }
.article-body ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; }
.article-body ul li::before { content: "•"; position: absolute; left: 0; color: var(--accent-teal-dark); font-size: 1.5rem; line-height: 1; }
.article-body ul li strong { font-weight: 600; color: #111111; }
.article-body a, .article-intro a { color: var(--accent-teal-dark) !important; text-decoration: underline; transition: color 0.2s ease; font-weight: 600; }
.article-body a:hover, .article-intro a:hover { color: #111111 !important; }
.share-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee; padding: 1.25rem 0; margin-top: 3rem; margin-bottom: 4rem; color: #555555; font-size: 0.9rem; }
.share-icons { display: flex; gap: 1.5rem; font-size: 1.1rem; }
.share-icons a { color: var(--accent-teal-dark) !important; }
.share-icons a:hover { color: #333333 !important; }
.recent-posts-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.recent-posts-header h3 { color: #333333; font-size: 1.3rem; }
.recent-posts-header a { color: var(--accent-teal-dark) !important; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; }
.recent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 4rem; }
.recent-card { display: flex; flex-direction: column; cursor: pointer; }
.recent-img-wrapper { width: 100%; height: 10rem; overflow: hidden; margin-bottom: 1rem; border-radius: 4px; }
.recent-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.recent-card:hover .recent-img-wrapper img { transform: scale(1.05); }
.recent-card h4 { font-size: 1.1rem; margin-bottom: 1rem; color: #333333; transition: color 0.2s ease; line-height: 1.4; font-weight: 800; }
.recent-card:hover h4 { color: var(--accent-teal-dark); }
.recent-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: #777777; }
.comments-section { border-top: 1px solid #eeeeee; padding-top: 3rem; text-align: center; color: #333333; font-size: 0.95rem; }

/* Footer */
footer { padding-top: 4rem; padding-bottom: 4rem; text-align: center; }
.social-icons { display: flex; gap: 1.25rem; }
.social-icon { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; transition: transform 0.2s ease; }
.social-icon:hover { transform: scale(1.1); }
.social-icon svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }

@media (max-width: 1100px) {
    html { font-size: 16px; }
    .container { width: 92%; }
    nav { flex-direction: column; gap: 2rem; }
    .header-actions { position: relative; justify-content: center; width: 100%; flex-direction: column; gap: 1rem; }
    .search-container { width: 100%; }
    .search-container input { width: 100%; }
    .blog-grid, .recent-grid { grid-template-columns: 1fr; }
    .featured-card { grid-template-columns: 1fr; gap: 1.5rem; }
    .featured-card .blog-img-wrapper { height: 16rem; }
    .blog-feed-wrapper, .light-bg-wrapper { padding: 2rem; }
    .article-title { font-size: 2rem; }
}