/*
Theme Name: Simtuarx
Author: WPArchitect
Description: A premium, high-performance theme for the cord-cutting and streaming niche. Features include a custom homepage, sticky ToC, interactive polls, and native shortcodes.
Version: 2.5.0
*/

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --text-main: #334155;
    --text-heading: #0f172a;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
}
a { text-decoration: none; color: inherit; transition: 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em;
}
h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-top: 2em; }
h3 { font-size: 1.5rem; margin-top: 1.5em; }

/* Layout Containers */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-content {
    display: grid;
    gap: 40px;
    padding: 60px 0;
}
/* Sidebar Layout (Desktop) */
@media (min-width: 1024px) {
    .site-content {
        grid-template-columns: 70% 30%;
    }
}
/* Centered Layout (Pages/Archives) */
.layout-centered .site-content {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.site-branding {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    flex-shrink: 0;
}
.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.main-navigation a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-heading);
}
.main-navigation a:hover { color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* Mobile Menu Logic */
@media (max-width: 1023px) {
    .menu-toggle { display: block; }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .main-navigation.toggled { display: block; }
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
@media (min-width: 1024px) {
    .menu-toggle { display: none !important; }
    .main-navigation { display: block !important; }
    .main-navigation ul { display: flex !important; }
}

/* Front Page Sections */
.hero-section {
    position: relative;
    background: var(--text-heading);
    color: white;
    padding: 100px 0;
    margin-bottom: 60px;
    overflow: hidden;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-form { display: flex; gap: 10px; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.hero-input { padding: 12px 20px; border-radius: 50px; border: none; width: 300px; }
.btn { 
    background: var(--gradient);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4); }

.trending-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}
.trend-card { display: flex; gap: 15px; align-items: center; }
.trend-num { 
    font-size: 3rem; 
    font-weight: 900; 
    color: var(--border); 
    line-height: 1;
}
.trend-info h4 { font-size: 1.1rem; margin: 0; }

.niche-hub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}
.niche-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}
.niche-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--primary); }

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.post-thumb {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #e2e8f0;
}
.post-thumb img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.post-content { padding: 25px; }
.post-cat { 
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.post-title { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* Single Post Styles */
.single-post-content { font-size: 1.125rem; color: var(--text-main); line-height: 1.8; }
.single-post-content p { margin-bottom: 1.5em; }
.single-post-content ul { padding-left: 0; list-style: none; margin-bottom: 1.5em; }
.single-post-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.5em;
}
.single-post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 10px;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.single-post-content img {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin: 2em 0;
}

/* STICKY TOC WIDGET */
.toc-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    /* Sticky Logic */
    position: sticky;
    top: 100px; /* Below header */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) transparent;
}
.toc-widget::-webkit-scrollbar {
    width: 6px;
}
.toc-widget::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
    border-radius: 10px;
}
.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
}
.toc-toggle::after { content: '▼'; font-size: 0.8rem; transition: transform 0.3s; display: inline-block; }
.toc-widget.is-collapsed .toc-list { display: none; }
.toc-widget.is-collapsed .toc-toggle::after { transform: rotate(-90deg); }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 8px; font-size: 0.9rem; }
.toc-list a { color: var(--text-main); display: block; padding: 4px 0; }
.toc-list a:hover { color: var(--primary); transform: translateX(5px); }

/* Live Poll Widget */
.wpa-poll-widget { background: white; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 30px; }
.poll-question { font-weight: 700; margin-bottom: 15px; display: block; }
.poll-option { display: block; margin-bottom: 10px; cursor: pointer; }
.poll-option input { margin-right: 10px; }
.poll-results { display: none; margin-top: 15px; }
.poll-bar-container { background: #f1f5f9; border-radius: 10px; height: 8px; margin: 5px 0 15px; overflow: hidden; }
.poll-bar-fill { height: 100%; background: var(--gradient); width: 0; transition: width 1s ease; }

/* Link Card Shortcode */
.wpa-link-card {
    display: flex;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 2.5em 0;
    box-shadow: var(--shadow-md);
    text-decoration: none !important;
    color: inherit !important;
}
.wpa-link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.wpa-lc-img { width: 35%; min-height: 150px; background-size: cover; background-position: center; }
.wpa-lc-content { width: 65%; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.wpa-lc-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-heading); }
.wpa-lc-excerpt { font-size: 0.9rem; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wpa-lc-cta { margin-top: 10px; font-size: 0.85rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width: 600px) {
    .wpa-link-card { flex-direction: column; }
    .wpa-lc-img { width: 100%; height: 180px; }
    .wpa-lc-content { width: 100%; }
}

/* Footer */
.site-footer { background: #1e293b; color: #94a3b8; padding: 60px 0 20px; margin-top: 80px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.site-info { text-align: center; border-top: 1px solid #334155; padding-top: 20px; font-size: 0.9rem; }