/*
Theme Name: RoboActu
Theme URI: https://roboactu.fr
Description: Thème enfant GeneratePress pour RoboActu - Actualités Tech & IA
Author: Expert WP
Author URI: https://roboactu.fr
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
    /* Couleurs de fond */
    --bg-main: #0a0a0f;
    --bg-surface: #111118;
    --bg-surface-hover: #1a1a24;
    --bg-footer: #08080c;
    
    /* Couleurs d'accent */
    --accent-primary: #3b82f6; /* Bleu électrique */
    --accent-secondary: #06b6d4; /* Cyan */
    
    /* Texte */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    /* Couleurs Catégories */
    --cat-ia: #3b82f6;
    --cat-robots: #06b6d4;
    --cat-industrie: #8b5cf6;
    --cat-france: linear-gradient(90deg, #0055A4 0%, #FFFFFF 50%, #EF4135 100%);
    --cat-chine: #ef4444;
    --cat-dossiers: #eab308;
    --cat-default: #4b5563;

    /* Typographie */
    --font-body: 'Inter', sans-serif;
    
    /* Espacements & Layout */
    --container-width: 1200px;
    --content-width: 720px;
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-secondary);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   GENERATEPRESS OVERRIDES — Centrage & suppression layout parent
   ========================================================================== */
body .site-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

body #page,
body .site,
body .grid-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Désactiver le sidebar GP natif, on gère nous-même */
body.right-sidebar .site-main,
body.right-sidebar #primary {
    width: 100%;
    float: none;
    margin: 0;
}

body .site-content .content-area,
body .site-content .widget-area {
    float: none;
    width: 100%;
}

/* Supprimer les conteneurs GP qui limitent la largeur */
body .inside-article,
body .entry-content {
    max-width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

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

.site-logo a {
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.site-logo span {
    color: var(--accent-primary);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--accent-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-newsletter {
    background: var(--accent-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-newsletter:hover {
    background: var(--accent-secondary);
    color: #fff;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   BADGES CATÉGORIES
   ========================================================================== */
.cat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 10px;
    background: var(--cat-default);
}

.cat-badge.ia { background: var(--cat-ia); }
.cat-badge.robots { background: var(--cat-robots); color: var(--bg-main); }
.cat-badge.industrie { background: var(--cat-industrie); }
.cat-badge.france { background: var(--cat-france); color: var(--bg-main); text-shadow: 0 0 2px rgba(255,255,255,0.8); }
.cat-badge.chine { background: var(--cat-chine); }
.cat-badge.dossiers { background: var(--cat-dossiers); color: var(--bg-main); }

/* ==========================================================================
   HOMEPAGE : HERO & GRID
   ========================================================================== */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.hero-post {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 450px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 40px;
    grid-column: 1 / -1;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10,10,15,1) 0%, rgba(10,10,15,0.85) 40%, rgba(10,10,15,0.4) 70%, rgba(10,10,15,0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    width: 100%;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 10px 0 15px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.8);
}

.hero-title a {
    color: #fff;
    text-decoration: none;
}

.hero-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(59, 130, 246, 0.1);
}

.post-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 10px;
}

.post-card-title a {
    color: #fff;
}

.post-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.post-card-meta {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar-widget {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-primary);
    display: inline-block;
}

.trending-list {
    list-style: none;
    padding: 0; margin: 0;
}

.trending-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trending-list li:last-child {
    margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}

.trending-list a {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.trending-list a:hover { color: var(--accent-secondary); }

.widget-newsletter input[type="email"] {
    width: 100%;
    padding: 12px;
    background: var(--bg-main);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.widget-newsletter button {
    width: 100%;
    padding: 12px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.widget-newsletter button:hover {
    background: var(--accent-secondary);
}

/* ==========================================================================
   SINGLE ARTICLE
   ========================================================================== */
.single-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.single-hero .container {
    position: relative;
    z-index: 3;
    padding-bottom: 60px;
    max-width: 900px;
}

.single-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 15px 0 20px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.8);
}

.single-meta {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.single-content {
    max-width: var(--content-width);
    margin: 60px auto;
    padding: 0 20px;
    font-size: 1.125rem; /* 18px */
    line-height: 1.7;
}

.single-content h2, .single-content h3 {
    color: #fff;
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.single-content h2 { font-size: 2rem; }
.single-content h3 { font-size: 1.5rem; }

.single-content p { margin-bottom: 1.5em; }

.single-content img {
    border-radius: var(--radius);
    margin: 2em 0;
}

.single-content blockquote {
    border-left: 4px solid var(--accent-primary);
    margin: 2em 0;
    padding: 1em 2em;
    background: var(--bg-surface);
    font-style: italic;
    font-size: 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.related-posts {
    background: var(--bg-surface);
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.related-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 40px;
    color: #fff;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ==========================================================================
   ARCHIVE / CATEGORY
   ========================================================================== */
.archive-header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--bg-surface), var(--bg-main));
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 40px;
}

.archive-title {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 10px;
    color: #fff;
}

.archive-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-footer);
    border-top: 2px solid var(--accent-secondary);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0; margin: 0;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-secondary); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE (Mobile First approach applied via max-width limits)
   ========================================================================== */
@media (max-width: 1024px) {
    .home-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; } /* Sidebar cachée sur tablette/mobile comme demandé */
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav, .btn-newsletter { display: none; }
    .menu-toggle { display: block; }
    .post-grid, .related-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-content { padding: 20px; }
    .single-hero { height: 50vh; }

    /* Menu mobile ouvert */
    .main-nav.toggled {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-main, #0a0a0f);
        border-top: 1px solid rgba(59,130,246,0.2);
        border-bottom: 1px solid rgba(59,130,246,0.2);
        z-index: 1000;
        padding: 10px 0;
    }
    .main-nav.toggled ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav.toggled ul li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .main-nav.toggled ul li a:hover {
        background: rgba(59,130,246,0.1);
    }
    .header-inner {
        position: relative;
    }
}

/* ==========================================================================
   ROBODEX
   ========================================================================== */
.robodex-main {
    margin-bottom: 60px;
}

.robodex-hero {
    position: relative;
    padding: 72px 0 56px;
    background:
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.18), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.16), transparent 45%),
        linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-main) 65%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.robodex-hero-inner {
    text-align: center;
    animation: robodexFadeIn 0.7s ease;
}

.robodex-hero-logo-wrap {
    margin: 0 auto 18px;
    width: min(190px, 55vw);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 16px;
}

.robodex-hero-logo {
    width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.robodex-title {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 1.8px;
    color: #fff;
}

.robodex-subtitle {
    margin: 14px auto 0;
    max-width: 680px;
    color: var(--text-muted);
    font-size: clamp(1rem, 2.3vw, 1.25rem);
}

.robodex-counter {
    margin: 22px 0 0;
    color: var(--accent-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.robodex-filters-wrap {
    padding: 26px 0 10px;
}

.robodex-filters {
    display: grid;
    gap: 12px;
}

.robodex-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.robodex-filter-label {
    font-size: 0.78rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 6px;
}

.robodex-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.robodex-filter-pill:hover,
.robodex-filter-pill.is-active {
    border-color: rgba(59, 130, 246, 0.65);
    color: #fff;
    background: rgba(59, 130, 246, 0.18);
}

.robodex-content-wrap {
    padding-top: 18px;
}

.robodex-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.robodex-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
}

.robodex-card:hover {
    transform: translateY(-7px) scale(1.01);
    border-color: rgba(6, 182, 212, 0.55);
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.35), 0 0 24px rgba(6, 182, 212, 0.2);
}

.robodex-card-media {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.robodex-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.robodex-card:hover .robodex-card-media img {
    transform: scale(1.06);
}

.robodex-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.96), rgba(10, 10, 15, 0.1));
}

.robodex-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.5), rgba(6, 182, 212, 0.38));
}

.robodex-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.robodex-card-title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.robodex-card-title a {
    color: #fff;
}

.robodex-card-title a:hover {
    color: var(--accent-secondary);
}

.robodex-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.robodex-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 800;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.robodex-badge-brand {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.18);
}

.robodex-badge-function {
    border-color: rgba(6, 182, 212, 0.34);
    background: rgba(6, 182, 212, 0.16);
}

.robodex-badge-status {
    color: #fff;
    border: none;
}

.robodex-badge-status.status-commercial {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.robodex-badge-status.status-prototype {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.robodex-badge-status.status-abandoned {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.robodex-badge-status.status-development {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.robodex-card-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 7px;
}

.robodex-card-specs li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.92rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.robodex-card-specs strong {
    color: #fff;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.robodex-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, var(--accent-primary), var(--accent-secondary));
}

.robodex-card-link:hover {
    color: #fff;
    filter: brightness(1.08);
}

.robodex-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.robodex-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.robodex-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-weight: 700;
}

.robodex-pagination .page-numbers.current,
.robodex-pagination .page-numbers:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.robodex-empty {
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
}

.robodex-single-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.robodex-single-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.robodex-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.96) 0%, rgba(10, 10, 15, 0.35) 62%, rgba(10, 10, 15, 0.6) 100%);
}

.robodex-single-hero .container {
    position: relative;
    z-index: 2;
    padding: 28px 20px 44px;
}

.robodex-breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(243, 244, 246, 0.82);
    font-size: 0.83rem;
    margin-bottom: 20px;
}

.robodex-breadcrumb a {
    color: rgba(243, 244, 246, 0.82);
}

.robodex-breadcrumb a:hover {
    color: #fff;
}

.robodex-single-hero-content {
    max-width: 850px;
}

.robodex-single-brand-logo {
    width: 144px;
    max-width: 45vw;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 10, 15, 0.55);
}

.robodex-single-title {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4.3rem);
    line-height: 1;
    font-weight: 900;
    color: #fff;
}

.robodex-single-meta-row {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.robodex-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    margin-top: 34px;
}

.robodex-single-content {
    min-width: 0;
}

.robodex-specs,
.robodex-section,
.robodex-side-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 22px;
}

.robodex-specs h2,
.robodex-section h2 {
    margin: 0 0 18px;
    font-size: 1.6rem;
    color: #fff;
}

.robodex-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.robodex-spec-card {
    border-radius: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 6px;
}

.robodex-spec-icon {
    color: var(--accent-secondary);
    font-weight: 700;
}

.robodex-spec-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}

.robodex-spec-value {
    color: #fff;
    line-height: 1.2;
}

.robodex-editor-content {
    color: var(--text-main);
}

.robodex-editor-content p:last-child {
    margin-bottom: 0;
}

.robodex-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.robodex-video-wrap iframe,
.robodex-video-wrap .twitter-tweet {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.robodex-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.robodex-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.robodex-gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.robodex-gallery-item:hover img {
    transform: scale(1.05);
}

.robodex-single-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.robodex-single-nav a {
    color: var(--text-main);
    font-weight: 700;
}

.robodex-single-nav-prev {
    text-align: left;
}

.robodex-single-nav-next {
    text-align: right;
}

.robodex-back-btn {
    padding: 10px 14px;
    border-radius: 9px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.45);
}

.robodex-back-btn:hover {
    color: #fff;
    background: rgba(59, 130, 246, 0.35);
}

.robodex-side-card h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.15rem;
}

.robodex-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.robodex-side-list li {
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.robodex-side-list li:last-child {
    border-bottom: 0;
}

.robodex-side-list a {
    color: var(--text-main);
    font-weight: 600;
}

.robodex-side-list a:hover {
    color: var(--accent-secondary);
}

@keyframes robodexFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .robodex-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .robodex-specs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .robodex-single-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .robodex-hero {
        padding: 58px 0 40px;
    }

    .robodex-grid,
    .robodex-gallery-grid {
        grid-template-columns: 1fr;
    }

    .robodex-single-hero {
        min-height: 48vh;
    }

    .robodex-specs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .robodex-single-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .robodex-single-nav-prev,
    .robodex-single-nav-next {
        text-align: center;
    }
}

/* Pages — dark background override (no white GP containers) */
.page .inside-article,
.page .page-header,
.page .separate-containers .inside-article {
    background-color: transparent;
    box-shadow: none;
    border: none;
}
.page .entry-content h2 {
    color: #e2e8f0;
}
.page .entry-content p,
.page .entry-content li {
    color: #cbd5e0;
}
.page .entry-content a {
    color: #3b82f6;
}
.page .entry-content a:hover {
    color: #60a5fa;
}
.page .page-header .entry-title,
.page .page-title {
    color: #f7fafc;
}
