/*
 * GAMEHOHO - Visitor premium polish
 * Visual layer only: spacing, cards, tables, mobile readability.
 */

:root {
    --premium-surface: #121824;
    --premium-surface-2: #16213e;
    --premium-border: rgba(74, 158, 255, 0.22);
    --premium-border-strong: rgba(0, 255, 136, 0.34);
    --premium-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    --premium-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.22);
    --premium-radius: 8px;
}

body {
    background:
        linear-gradient(180deg, rgba(15, 52, 96, 0.08) 0, transparent 360px),
        var(--bg-primary, #0a0c0f);
    letter-spacing: 0;
}

.container,
.recap-container,
.ccm-container,
.guide-container {
    max-width: 1180px;
}

main.container {
    width: 100%;
}

.btn,
.btn-pricing,
.btn-cta,
.recap-btn {
    border-radius: var(--premium-radius) !important;
    min-height: 42px;
    align-items: center;
    justify-content: center;
}

.btn:hover,
.btn-pricing:hover,
.btn-cta:hover,
.recap-btn:hover {
    transform: translateY(-2px);
}

.btn:focus-visible,
.btn-pricing:focus-visible,
.btn-cta:focus-visible,
.recap-btn:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #00ff88;
    outline-offset: 3px;
}

.hero {
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.hero::after,
.pricing-header::after,
.page-header::after {
    content: "";
    display: block;
    height: 1px;
    width: min(1120px, calc(100% - 40px));
    margin: 36px auto 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.45), transparent);
}

.hero .container {
    gap: 2.5rem;
}

.hero-title {
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    color: #b7c2d6;
    line-height: 1.7;
}

.hero-cta {
    align-items: stretch;
}

.hero-stats {
    gap: 12px;
    flex-wrap: wrap;
}

.stat {
    min-width: 118px;
    padding: 14px 16px;
    background: rgba(22, 33, 62, 0.72);
    border: 1px solid rgba(74, 158, 255, 0.18);
    border-radius: var(--premium-radius);
}

.bracket-preview,
.feature-card,
.tournament-card,
.pricing-card,
.tournoi-card,
.section-card,
.sidebar-section,
.faq-item,
.trust-item,
.highlight-box,
.step-box,
.scenario-box,
.checklist,
.recap-card,
.stat-card,
.podium-card,
.note-box {
    border-radius: var(--premium-radius) !important;
    border-color: var(--premium-border) !important;
    box-shadow: var(--premium-shadow-soft);
}

.bracket-preview,
.feature-card,
.tournament-card,
.pricing-card,
.tournoi-card,
.section-card,
.sidebar-section,
.recap-card,
.stat-card,
.podium-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
        var(--premium-surface-2) !important;
}

.feature-card:hover,
.tournament-card:hover,
.pricing-card:hover,
.tournoi-card:hover,
.section-card:hover {
    border-color: var(--premium-border-strong) !important;
    box-shadow: var(--premium-shadow);
}

.section-title {
    margin-bottom: 2.25rem;
}

.section-title::after,
.comparison-section h2::after,
.faq-section h2::after,
.section-card h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 3px;
    background: #00ff88;
}

.section-card h2::after {
    margin-left: 0;
    margin-right: 0;
}

.features,
.recent-tournaments,
.pricing-preview,
.trust-section {
    border-top: 1px solid rgba(74, 158, 255, 0.12);
    border-bottom: 1px solid rgba(74, 158, 255, 0.12);
}

.features-grid,
.tournaments-grid,
.pricing-grid,
.tournois-grid,
.trust-grid {
    align-items: stretch;
}

.feature-card,
.tournament-card,
.tournoi-card,
.pricing-card {
    min-height: 100%;
}

.mode-tag,
.tournoi-mode,
.tournoi-status,
.status-badge,
.card-badge,
.saving,
.promo-code-pill {
    border-radius: 999px !important;
}

.pricing-header,
.page-header {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(74, 158, 255, 0.16);
}

.pricing-header h1,
.page-header h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

.pricing-header p,
.page-header p {
    color: #b7c2d6 !important;
}

.pricing-grid {
    align-items: stretch;
}

.pricing-card {
    padding: 28px 24px !important;
    overflow: hidden;
}

.pricing-card.popular {
    border-color: #00ff88 !important;
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.16);
}

.pricing-card.boost {
    border-color: rgba(255, 122, 50, 0.75) !important;
}

.pricing-card.vip {
    border-color: rgba(255, 215, 0, 0.75) !important;
}

.period-selector,
.comparison-wrap,
.filters,
.infos-box,
.chat-form input,
.filters select {
    border-radius: var(--premium-radius) !important;
    border: 1px solid var(--premium-border) !important;
}

.period-selector button {
    border-radius: 6px !important;
}

.pricing-features li {
    border-bottom-color: rgba(74, 158, 255, 0.16) !important;
}

.comparison-wrap {
    box-shadow: var(--premium-shadow-soft);
}

.comparison-table th {
    background: #10294d !important;
}

.comparison-table tr:hover td {
    background: rgba(0, 255, 136, 0.045);
}

.trust-item,
.faq-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        rgba(22, 33, 62, 0.88) !important;
}

.filters {
    box-shadow: var(--premium-shadow-soft);
}

.filters label {
    display: block;
    margin-bottom: 6px;
}

.filters select {
    min-height: 42px;
}

.tournois-grid {
    gap: 20px !important;
}

.tournoi-card h3,
.tournament-title,
.pricing-name {
    line-height: 1.25;
}

.tournoi-stats,
.tournament-info {
    border-color: rgba(74, 158, 255, 0.16) !important;
}

.tournoi-footer {
    gap: 14px;
}

.create-section {
    border-radius: var(--premium-radius) !important;
    box-shadow: 0 18px 44px rgba(0, 255, 136, 0.12);
}

main.container {
    max-width: 1320px !important;
}

.tournoi-header,
.recap-hero {
    border-radius: var(--premium-radius) !important;
    border: 1px solid var(--premium-border) !important;
    box-shadow: var(--premium-shadow);
}

.tournoi-header h1,
.recap-hero h1 {
    line-height: 1.18;
}

.tournoi-meta {
    color: #b7c2d6 !important;
}

.infos-box {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background: rgba(10, 12, 15, 0.34) !important;
}

.info-item,
.info-box-clickable {
    border-radius: var(--premium-radius) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tournoi-grid {
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 22px !important;
}

.section-card,
.sidebar-section {
    padding: 22px !important;
}

.section-card h2,
.sidebar-section h3 {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.16);
}

.matches-grid {
    gap: 14px !important;
}

.match-box {
    border-radius: var(--premium-radius) !important;
    border: 1px solid rgba(74, 158, 255, 0.2) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.match-box.en_cours {
    border-color: #ffd700 !important;
}

.match-box.termine {
    border-color: #00ff88 !important;
}

.match-player {
    border-radius: 6px !important;
    min-height: 44px;
}

.player-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-actions .btn {
    min-height: 36px;
}

.participant-item,
.chat-message {
    border-radius: var(--premium-radius) !important;
    border: 1px solid rgba(74, 158, 255, 0.16);
}

.chat-container {
    padding-right: 4px;
}

.chat-form {
    align-items: stretch;
}

.chat-form button {
    border-radius: var(--premium-radius) !important;
}

.recap-container {
    max-width: 1180px !important;
}

.stat-grid,
.podium,
.recap-grid {
    gap: 16px !important;
}

.ranking-table {
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
}

.ranking-table th {
    background: #10294d !important;
}

.ranking-table th,
.ranking-table td {
    border-bottom-color: rgba(74, 158, 255, 0.18) !important;
}

.ranking-table tr:hover td {
    background: rgba(0, 255, 136, 0.045) !important;
}

.guide-container,
.ccm-container,
main > .container {
    line-height: 1.75;
}

.guide-container h1,
.ccm-container h1,
main > .container h1 {
    line-height: 1.18;
}

.guide-container h2,
.ccm-container h2 {
    border-bottom-color: rgba(74, 158, 255, 0.2) !important;
}

@media (max-width: 1100px) {
    .tournoi-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    body {
        background: var(--bg-primary, #0a0c0f);
    }

    .container,
    main.container,
    .recap-container,
    .ccm-container,
    .guide-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hero {
        padding-top: 4.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-title,
    .pricing-header h1,
    .page-header h1,
    .tournoi-header h1,
    .recap-hero h1 {
        font-size: 2rem !important;
    }

    .section-title,
    .cta-title {
        font-size: 1.85rem !important;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .stat {
        min-width: 0;
        padding: 12px 8px;
    }

    .stat-number {
        font-size: 1.35rem !important;
    }

    .pricing-grid,
    .tournois-grid,
    .features-grid,
    .tournaments-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-card.popular {
        transform: none;
    }

    .filters {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 14px !important;
    }

    .filters .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .tournoi-footer,
    .chat-form,
    .match-actions,
    .recap-actions {
        flex-direction: column !important;
    }

    .tournoi-footer .btn,
    .match-actions .btn,
    .recap-btn {
        width: 100%;
    }

    .comparison-wrap,
    .ranking-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ranking-table {
        display: block;
    }

    .section-card,
    .sidebar-section,
    .tournoi-header,
    .recap-hero {
        padding: 18px !important;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .pricing-card,
    .tournoi-card,
    .feature-card,
    .section-card,
    .sidebar-section,
    .recap-card,
    .stat-card,
    .podium-card {
        padding: 16px !important;
    }

    .pricing-price {
        font-size: 2rem !important;
    }
}
