/*
Theme Name: Tech Suddo
Theme URI: https://techsuddo.com
Author: D R Parajuli
Author URI: https://techsuddo.com
Description: Modern, blazing-fast, AdSense-optimized WordPress theme crafted for tech blogs, gadget reviews, and tech news. Features dedicated Google AdSense ad slots, responsive design, and clean E-E-A-T author layout.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 5.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techsuddo
Tags: blog, tech, news, custom-menu, featured-images, adsense-ready, right-sidebar, two-columns, translation-ready
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --text-main: #334155;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --radius: 12px;
    --radius-sm: 6px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.65;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

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

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.trending-badge {
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}
.top-bar-right a {
    color: #cbd5e1;
    margin-left: 12px;
    font-size: 13px;
}
.top-bar-right a:hover {
    color: #fff;
}

/* Site Header */
.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}
.site-branding .site-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.site-branding .site-title span {
    color: var(--primary);
}
.site-branding .site-description {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}
.main-navigation li a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}
.main-navigation li a:hover,
.main-navigation li.current-menu-item > a {
    color: var(--primary);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Ad Placements */
.techsuddo-ad-slot {
    margin: 20px auto;
    text-align: center;
    clear: both;
}
.techsuddo-ad-slot.ad-header {
    margin: 15px auto;
    max-width: 728px;
}
.techsuddo-ad-slot.ad-sidebar {
    margin-bottom: 25px;
}
.techsuddo-ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

/* Layout */
.site-content {
    padding: 30px 0 50px;
}
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 35px;
}

/* Hero / Featured Grid */
.hero-featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}
.featured-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 380px;
    background: var(--secondary);
}
.featured-card.secondary {
    height: calc((380px - 20px) / 2);
}
.featured-card-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.featured-card:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}
.featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    color: #fff;
}
.featured-card .cat-badge {
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}
.featured-card h2, .featured-card h3 {
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}
.featured-card h2 { font-size: 22px; }
.featured-card h3 { font-size: 16px; }

/* Section Header */
.section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}
.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

/* Post Cards Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.post-card-thumb {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}
.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}
.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}
.post-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.post-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.post-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.post-card-title a {
    color: var(--text-dark);
}
.post-card-title a:hover {
    color: var(--primary);
}
.post-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}
.post-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}
.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.pagination .page-numbers {
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Sidebar */
.sidebar .widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.widget-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary);
}
.widget ul {
    list-style: none;
}
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.widget ul li:last-child {
    border-bottom: none;
}

/* Author Box Widget */
.author-box-widget {
    text-align: center;
}
.author-box-widget .author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}
.author-box-widget h4 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 4px;
}
.author-box-widget .author-role {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.author-box-widget p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.author-social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.author-social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
}
.author-social-icons a:hover {
    background: var(--primary);
    color: #fff;
}

/* Single Post Page */
.single-post-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 35px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.breadcrumbs a {
    color: var(--text-muted);
}
.breadcrumbs a:hover {
    color: var(--primary);
}
.single-post-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--secondary);
    margin-bottom: 15px;
}
.single-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.single-featured-image {
    margin-bottom: 25px;
    border-radius: var(--radius);
    overflow: hidden;
}
.single-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}
.single-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    margin: 30px 0 15px;
}
.single-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    margin: 25px 0 12px;
}
.single-content p {
    margin-bottom: 20px;
}
.single-content ul, .single-content ol {
    margin: 0 0 20px 24px;
}
.single-content li {
    margin-bottom: 8px;
}

/* Pros and Cons Box Shortcode */
.techsuddo-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}
.techsuddo-box {
    border-radius: var(--radius-sm);
    padding: 20px;
}
.techsuddo-pros {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.techsuddo-cons {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.techsuddo-box-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.techsuddo-pros .techsuddo-box-title { color: #166534; }
.techsuddo-cons .techsuddo-box-title { color: #991b1b; }

/* Specs Table Shortcode */
.techsuddo-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.techsuddo-specs-table th, .techsuddo-specs-table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
}
.techsuddo-specs-table th {
    background: #f8fafc;
    color: var(--secondary);
    font-weight: 700;
    width: 35%;
}
.techsuddo-specs-table td {
    background: #ffffff;
}

/* Author Bio Box */
.single-author-box {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 40px;
}
.single-author-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
}
.single-author-info h4 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 4px;
}
.single-author-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Site Footer */
.site-footer {
    background: var(--secondary);
    color: #94a3b8;
    padding-top: 50px;
    margin-top: 60px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}
.footer-widget h4 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
}
.footer-widget p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}
.footer-widget ul {
    list-style: none;
}
.footer-widget ul li {
    margin-bottom: 10px;
}
.footer-widget ul li a {
    color: #94a3b8;
    font-size: 14px;
}
.footer-widget ul li a:hover {
    color: #ffffff;
}
.site-bottom-bar {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.footer-nav {
    display: flex;
    gap: 20px;
}
.footer-nav a {
    color: #94a3b8;
}
.footer-nav a:hover {
    color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-card {
        height: 280px;
    }
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px;
    }
    .main-navigation.is-active {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .menu-toggle {
        display: block;
    }
    .top-bar-left span:not(.trending-badge) {
        display: none;
    }
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    .site-bottom-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .techsuddo-pros-cons {
        grid-template-columns: 1fr;
    }
    .single-post-title {
        font-size: 24px;
    }
}
