/*
Theme Name: Techo
Theme URI: https://nexusbyte.example.com
Author: Antigravity
Description: A professional, dark-themed technology news theme based on the NexusByte design.
Version: 1.0.0
*/

:root {
    --bg-body: #090915;
    --bg-card: #13132B;
    --bg-card-hover: #1A1A3A;
    --primary: #3B82F6;
    --accent: #8B5CF6;
    --neon-blue: #00F0FF;
    --neon-purple: #BD00FF;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --radius-lg: 16px;
    --radius-md: 12px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
    --container-width: 1280px;
}

/* Base Setup */
body {
    background-color: var(--bg-body);
    color: var(--text-muted);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button & Badges */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.9rem;
}

.w-100 {
    width: 100%;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-accent {
    background: var(--accent);
    color: white;
}

.badge-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* HEADER */
.site-header {
    height: var(--header-height);
    background: rgba(9, 9, 21, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-title {
    font-size: 1.8rem;
    letter-spacing: -1px;
    margin: 0;
}

.text-primary {
    color: var(--primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.main-navigation a:hover {
    color: var(--text-main);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-toggle,
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

/* HERO SECTION */
.section-hero {
    margin-top: 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 500px;
}

.hero-main-card {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    position: relative;
    padding: 40px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    position: relative;
    padding: 25px;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.side-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Hot Topics */
.hot-topics-bar {
    margin-top: 20px;
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hot-label {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.hot-scroll {
    display: flex;
    gap: 30px;
    overflow: hidden;
    flex: 1;
    white-space: nowrap;
}

.topic-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topic-item i {
    color: orange;
}

/* Wired Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.wire-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.wire-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wire-img {
    width: 40%;
    position: relative;
}

.wire-img img {
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.wire-body {
    padding: 25px;
    width: 60%;
}

/* Content & Sidebar */
.content-sidebar-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.feed-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.feed-thumb {
    width: 180px;
    flex-shrink: 0;
}

.feed-thumb img {
    border-radius: 8px;
    height: 120px;
    object-fit: cover;
}

.category-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Sidebar Widgets */
.widget-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-newsletter {
    background: linear-gradient(135deg, #1e1e40, #13132b);
    text-align: center;
}

.popular-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.popular-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    counter-increment: section;
}

.popular-list .count {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

/* Reviews Spotlight */
.reviews-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.review-score-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.8rem;
    z-index: 2;
}

.product-img-box {
    margin: -20px -20px 20px -20px;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
}

/* Enterprise */
.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.enterprise-card {
    background: var(--bg-card);
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    gap: 20px;
}

.ent-img {
    width: 100px;
    height: 80px;
    background: #222;
    border-radius: 6px;
}

/* Responsive & Mobile Menu */
@media (max-width: 900px) {

    /* Layout Adjustments */
    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-main-card {
        height: 400px;
    }

    .content-sidebar-split {
        grid-template-columns: 1fr;
    }

    .wire-grid,
    .reviews-row,
    .enterprise-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
    }

    .site-title {
        font-size: 1.5rem;
    }

    /* Hide desktop nav */
    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(9, 9, 21, 0.98);
        backdrop-filter: blur(20px);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-navigation.toggled {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 30px;
        font-size: 1.5rem;
        text-align: center;
    }

    .main-navigation a {
        color: white;
        font-weight: 700;
    }

    /* Toggle Button */
    .menu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        margin-right: 15px;
    }

    .d-lg-none {
        display: block;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-form {
        justify-content: center;
    }
}

/* Utilities */
.d-lg-none {
    display: none;
}

@media (max-width: 900px) {
    .d-lg-none {
        display: block;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.wire-card,
.review-card,
.enterprise-card,
.hero-main-card,
.side-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.hero-main-card {
    animation-delay: 0.1s;
}

.side-card {
    animation-delay: 0.2s;
}

.wire-card {
    animation-delay: 0.3s;
}

/* --- STANDARD TEMPLATES & PAGES --- */

/* Single Post */
.single-post-article .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.author-meta .byline a {
    color: var(--primary);
    font-weight: 600;
}

.post-featured-image img {
    border-radius: var(--radius-lg);
    width: 100%;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-main);
    background: rgba(139, 92, 246, 0.1);
    padding: 20px;
    border-radius: 0 12px 12px 0;
}

/* Archives & Search */
.archive-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Comments */
.comment-list .comment {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-body {
    position: relative;
}

.comment-author .avatar {
    float: left;
    margin-right: 20px;
    border-radius: 50%;
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.comment-content p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.reply a {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
input[type="search"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    width: 100%;
    font-family: inherit;
    margin-bottom: 15px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* 404 */
.error-404 {
    padding: 80px 0;
}

.error-title {
    font-weight: 900;
    letter-spacing: -5px;
}

/* WP Standard Classes */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.wp-caption {
    background: var(--bg-card);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.wp-caption-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}