/* Gaming Article Styles - nemaides.fr */
/* Palette: #dc2626 (red), #1e3a5f (navy), #fbbf24 (amber) */

:root {
    --color-primary: #dc2626;
    --color-secondary: #1e3a5f;
    --color-accent: #fbbf24;
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Article Container */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Hero Section */
.article-hero {
    background-color: var(--color-secondary);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(220, 38, 38, 0.1);
    pointer-events: none;
}

.article-hero__badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.article-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.article-hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-accent);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* Article Content */
.article-content {
    padding: 60px 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--color-text);
}

.article-content h2 {
    font-size: 1.875rem;
    color: var(--color-accent);
    margin: 48px 0 24px;
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 36px 0 20px;
    font-weight: 600;
}

.article-content strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* Blog Disclaimer */
.blog-disclaimer {
    background-color: var(--color-surface);
    border-left: 4px solid var(--color-primary);
    padding: 20px 24px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

.blog-disclaimer p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Product Cards */
.product-showcase {
    margin: 48px 0;
}

.product-card {
    background-color: var(--color-surface);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.product-card__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.product-card__image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 12px;
    flex-shrink: 0;
}

.product-card__title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.product-card__price {
    display: inline-block;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.product-card__specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.spec-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.spec-value {
    font-weight: 600;
    color: #ffffff;
}

/* Comparison Table */
.comparison-wrapper {
    overflow-x: auto;
    margin: 48px 0;
    border-radius: 12px;
    background-color: var(--color-surface);
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th {
    background-color: var(--color-secondary);
    color: #ffffff;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--color-primary);
    white-space: nowrap;
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.comparison-table tr:hover td {
    background-color: rgba(220, 38, 38, 0.05);
}

.rating-stars {
    color: var(--color-accent);
    font-weight: 700;
}

/* Calculator Section */
.calculator-section {
    background-color: var(--color-surface);
    border-radius: 16px;
    padding: 40px;
    margin: 48px 0;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.calculator-section h2 {
    margin-top: 0;
    color: var(--color-accent);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: var(--color-bg);
    color: #ffffff;
    font-size: 1rem;
    font-family: var(--font-system);
    width: 100%;
    max-width: 100%;
}

.calculator-result {
    margin-top: 32px;
    padding: 24px;
    background-color: var(--color-secondary);
    border-radius: 12px;
    text-align: center;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.result-label {
    color: var(--color-text-muted);
    margin-top: 8px;
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.stat-box {
    background-color: var(--color-surface);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 3px solid var(--color-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    display: block;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Tabs Container */
.tabs-container {
    margin: 48px 0;
}

.tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.tab-button {
    padding: 12px 24px;
    border: none;
    background-color: transparent;
    color: var(--color-text-muted);
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: var(--font-system);
    position: relative;
}

.tab-button:hover {
    color: #ffffff;
    background-color: rgba(220, 38, 38, 0.1);
}

.tab-button.active {
    color: #ffffff;
    background-color: var(--color-primary);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-panel.active {
    display: block;
}

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

/* Grip Types */
.grip-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.grip-card {
    background-color: var(--color-surface);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grip-card h4 {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.grip-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Verdict Box */
.verdict-box {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    margin: 48px 0;
    position: relative;
}

.verdict-box h2 {
    color: #ffffff;
    margin-top: 0;
}

.verdict-winner {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin-top: 24px;
    border: 2px solid var(--color-accent);
}

.verdict-winner h3 {
    color: var(--color-accent);
    margin: 0 0 12px 0;
}

/* FAQ Section */
.faq-item {
    background-color: var(--color-surface);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-left: 16px;
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--color-text-muted);
    display: block;
}

/* Utility Classes */
.highlight-text {
    background-color: rgba(251, 191, 36, 0.2);
    color: var(--color-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.tech-term {
    color: var(--color-accent);
    font-weight: 600;
    border-bottom: 1px dotted var(--color-accent);
    cursor: help;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-hero {
        padding: 60px 20px 40px;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .product-card__header {
        flex-direction: column;
        text-align: center;
    }
    
    .product-card {
        padding: 24px;
    }
    
    .calculator-section {
        padding: 24px;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .verdict-box {
        padding: 24px;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .grip-types {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Technical Terms Enhancement */
.tech-term:hover {
    background-color: rgba(251, 191, 36, 0.1);
}

/* Table enhancements for mobile */
@media (max-width: 640px) {
    .comparison-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
}

/* Article specific image handling */
.article-content img {
    border-radius: 8px;
    margin: 24px 0;
}

/* Ensure no text overflow */
.article-content p,
.article-content li,
.article-content td {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Focus states for interactive elements */
.tab-button:focus,
.faq-question:focus,
input:focus,
select:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .article-hero {
        background-color: #ffffff;
        color: #000000;
    }
    
    .article-hero__title,
    .article-hero__subtitle {
        color: #000000;
    }
    
    .product-card,
    .stat-box,
    .grip-card,
    .faq-item,
    .verdict-box {
        break-inside: avoid;
        border: 1px solid #cccccc;
    }
}