/* ===================================
   Once Human Build - Style CSS
   ================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e4e4e4;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(15, 15, 35, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 3px solid #e94560;
}

header h1 {
    font-size: 2.5em;
    color: #00d9ff;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #a8dadc;
    font-weight: 300;
}

/* Sections */
section {
    padding: 30px;
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
}

section h2 {
    font-size: 2em;
    color: #00d9ff;
    margin-bottom: 20px;
    border-left: 5px solid #e94560;
    padding-left: 15px;
}

section h3 {
    font-size: 1.4em;
    color: #ffd700;
    margin-bottom: 15px;
    margin-top: 10px;
}

/* Weapon Cards */
.weapon-main {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.3) 0%, rgba(22, 33, 62, 0.3) 100%);
}

.weapon-card {
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid #00d9ff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.weapon-card h3 {
    font-size: 1.8em;
    color: #00d9ff;
    margin-bottom: 10px;
}

.weapon-type {
    font-size: 1.1em;
    color: #a8dadc;
    font-style: italic;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(22, 33, 62, 0.5);
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #e94560;
}

thead {
    background: linear-gradient(135deg, #e94560 0%, #c72d4a 100%);
}

thead th {
    padding: 15px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid #00d9ff;
}

thead th:last-child {
    border-right: none;
}

thead th .icon {
    margin-right: 8px;
    font-size: 1.2em;
}

tbody tr {
    border-bottom: 2px solid rgba(233, 69, 96, 0.3);
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: rgba(0, 217, 255, 0.15);
    transform: translateX(5px);
}

tbody td {
    padding: 15px;
    vertical-align: top;
    border-right: 1px solid rgba(233, 69, 96, 0.2);
    border-bottom: 1px solid rgba(233, 69, 96, 0.15);
}

tbody td:last-child {
    border-right: none;
}

tbody td ul {
    list-style: none;
    padding-left: 0;
}

tbody td ul li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

tbody td ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #00d9ff;
    font-weight: bold;
}

tbody td i {
    margin-right: 6px;
}

/* Icon Styles - Émojis Unicode */
.icon {
    display: inline-block;
    margin-right: 8px;
    font-style: normal;
    font-size: 1.1em;
}

/* Icon Colors */
.icon-gun, .icon-fire, .icon-skull { filter: hue-rotate(0deg) brightness(1.2); }
.icon-target, .icon-aim, .icon-crosshair { filter: brightness(1.2); }
.icon-sword { filter: brightness(1.3); }
.icon-shield, .icon-shield-sm, .icon-vest, .icon-helmet { filter: brightness(1.1); }
.icon-heart, .icon-heart-pulse { filter: brightness(1.2); }
.icon-biohazard { filter: brightness(1.3); }
.icon-wave { filter: brightness(1.2); }
.icon-hiker { filter: brightness(1.2); }
.icon-star { filter: brightness(1.4); }
.icon-check, .icon-check-green, .icon-check-circle { filter: brightness(1.2); }
.icon-trophy { filter: brightness(1.3); }
.icon-graph, .icon-chart { filter: brightness(1.2); }
.icon-bulb { filter: brightness(1.3); }
.icon-thumbs-up { filter: brightness(1.2); }
.icon-warning { filter: brightness(1.3); }
.icon-chess { filter: brightness(1.2); }
.icon-sliders { filter: brightness(1.2); }
.icon-arrow-right, .icon-circle-arrow { filter: brightness(1.2); }
.icon-plus { filter: brightness(1.2); }
.icon-wrench { filter: brightness(1.3); }
.icon-cross { filter: brightness(1.2); }

.text-success { filter: brightness(1.2); }
.text-warning { filter: brightness(1.2); }

/* Master Table Styles */
.master-table {
    font-size: 0.95em;
}

.master-table thead th {
    padding: 18px 12px;
    font-size: 0.85em;
}

.master-table tbody td {
    padding: 12px;
    line-height: 1.6;
}

/* Category Headers */
.category-header {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%) !important;
}

.category-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #00d9ff !important;
    text-align: center;
    padding: 20px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    border-top: 3px solid #e94560;
    border-bottom: 3px solid #e94560;
}

/* Stats Value Cells */
.stat-value-cell {
    font-weight: 700;
    font-size: 1.2em;
    text-align: center;
    padding: 15px !important;
    border: 2px solid;
}

.stat-dps {
    color: #e94560;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2) 0%, rgba(233, 69, 96, 0.05) 100%);
    border-color: #e94560 !important;
}

.stat-dps-corrupt {
    color: #c084fc;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-color: #c084fc !important;
}

.stat-hp {
    color: #4ade80;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.05) 100%);
    border-color: #4ade80 !important;
}

.stat-pollution {
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: #fbbf24 !important;
}

.stat-defense {
    color: #60a5fa;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: #60a5fa !important;
}

.stat-regen {
    color: #34d399;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: #34d399 !important;
}

.stat-speed {
    color: #00d9ff;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 217, 255, 0.05) 100%);
    border-color: #00d9ff !important;
}

.stat-crit {
    color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-color: #ffd700 !important;
}

/* Stats Row */
.stats-row {
    background: rgba(22, 33, 62, 0.8) !important;
}

.stats-row td:first-child {
    font-weight: 600;
    color: #a8dadc;
}

.stats-row td:nth-child(4) {
    font-weight: 600;
    color: #a8dadc;
}

/* Set Bonus Row */
.set-bonus-row {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.3) 0%, rgba(74, 20, 140, 0.3) 100%) !important;
}

.set-bonus-cell {
    padding: 20px !important;
    text-align: center;
    font-size: 1.1em;
    color: #ce93d8 !important;
    border: 2px solid #6a1b9a;
}

.set-bonus-cell strong {
    color: #ffd700;
    font-size: 1.2em;
}

/* Strategy Row */
.strategy-row {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.4) 0%, rgba(15, 52, 96, 0.2) 100%) !important;
    border-left: 5px solid #00d9ff !important;
}

.strategy-row:hover {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.6) 0%, rgba(15, 52, 96, 0.3) 100%) !important;
}

.strategy-row td:first-child {
    font-weight: 700;
    color: #00d9ff;
    white-space: nowrap;
    min-width: 150px;
    background: rgba(0, 217, 255, 0.1);
    border-right: 3px solid #00d9ff !important;
}

.strategy-row td {
    line-height: 1.8;
}

/* Badge Special */
.badge-special {
    background: linear-gradient(135deg, #e94560 0%, #c72d4a 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
}

/* Slot Badges */
.slot-primary {
    background: linear-gradient(135deg, #e94560 0%, #c72d4a 100%);
    color: #fff;
    font-weight: 600;
    padding: 8px 12px !important;
    border-radius: 5px;
    text-align: center;
    border-right: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.slot-secondary {
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    color: #fff;
    font-weight: 600;
    padding: 8px 12px !important;
    border-radius: 5px;
    text-align: center;
    border-right: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.slot-melee {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
    font-weight: 600;
    padding: 8px 12px !important;
    border-radius: 5px;
    text-align: center;
    border-right: 2px solid rgba(255, 255, 255, 0.3) !important;
}

/* Set Badges */
.badge-marees {
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(74, 20, 140, 0.5);
}

.badge-nomade {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.5);
}

.set-marees {
    border-left: 5px solid #6a1b9a !important;
    background: rgba(106, 27, 154, 0.05) !important;
}

.set-marees:hover {
    background: rgba(106, 27, 154, 0.15) !important;
}

.set-nomade {
    border-left: 5px solid #43a047 !important;
    background: rgba(67, 160, 71, 0.05) !important;
}

.set-nomade:hover {
    background: rgba(67, 160, 71, 0.15) !important;
}

/* Armor Note */
.armor-note {
    background: rgba(233, 69, 96, 0.2);
    border-left: 4px solid #e94560;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.armor-note p {
    color: #ffd700;
    font-size: 1.1em;
}

/* Set Bonus */
.set-bonus {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.2) 0%, rgba(74, 20, 140, 0.2) 100%);
    border: 2px solid #6a1b9a;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.set-bonus h3 {
    color: #ce93d8;
    margin-bottom: 15px;
}

.set-bonus ul {
    list-style: none;
    padding-left: 0;
}

.set-bonus ul li {
    padding: 8px 0;
    font-size: 1.1em;
    color: #e4e4e4;
}

/* Mods Grid */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mod-category {
    background: rgba(22, 33, 62, 0.6);
    border: 2px solid #00d9ff;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.mod-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.mod-category h3 {
    color: #00d9ff;
    border-bottom: 2px solid #e94560;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.mod-category ul {
    list-style: none;
    padding-left: 0;
}

.mod-category ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(233, 69, 96, 0.1);
    line-height: 1.5;
}

.mod-category ul li:last-child {
    border-bottom: none;
}

.mod-category ul li strong {
    color: #ffd700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: rgba(22, 33, 62, 0.6);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(0, 217, 255, 0.3);
}

.stat-card h3 {
    font-size: 1em;
    color: #a8dadc;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #00d9ff;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.bonus {
    font-size: 0.5em;
    color: #4ade80;
    display: block;
    margin-top: 5px;
}

/* Stat Card Colors */
.stat-dps {
    border-color: #e94560;
}

.stat-dps .stat-value {
    color: #e94560;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.stat-dps-corrupt {
    border-color: #9333ea;
}

.stat-dps-corrupt .stat-value {
    color: #c084fc;
    text-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

.stat-hp {
    border-color: #4ade80;
}

.stat-hp .stat-value {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.stat-pollution {
    border-color: #f59e0b;
}

.stat-pollution .stat-value {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.stat-defense {
    border-color: #3b82f6;
}

.stat-defense .stat-value {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.stat-regen {
    border-color: #10b981;
}

.stat-regen .stat-value {
    color: #34d399;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.stat-speed {
    border-color: #00d9ff;
}

.stat-speed .stat-value {
    color: #00d9ff;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.stat-crit {
    border-color: #ffd700;
}

.stat-crit .stat-value {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Strategy Section */
.strategy-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.strategy-box {
    border-radius: 10px;
    padding: 25px;
    border: 2px solid;
}

.strengths {
    background: rgba(74, 222, 128, 0.1);
    border-color: #4ade80;
}

.strengths h3 {
    color: #4ade80;
}

.weaknesses {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
}

.weaknesses h3 {
    color: #fbbf24;
}

.strategy-box ul {
    list-style: none;
    padding-left: 0;
}

.strategy-box ul li {
    padding: 10px 0;
    font-size: 1.05em;
}

.tactics {
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid #00d9ff;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
}

.tactics h3 {
    color: #00d9ff;
    margin-bottom: 15px;
}

.tactics ol {
    padding-left: 20px;
}

.tactics ol li {
    padding: 10px 0;
    font-size: 1.05em;
    line-height: 1.6;
}

.tactics ol li strong {
    color: #ffd700;
}

/* Optimizations */
.optimization-box {
    background: rgba(233, 69, 96, 0.1);
    border-left: 4px solid #e94560;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.optimization-box:hover {
    background: rgba(233, 69, 96, 0.2);
    transform: translateX(10px);
}

.optimization-box h3 {
    color: #e94560;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.optimization-box p {
    font-size: 1.05em;
    line-height: 1.6;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    padding: 30px;
    text-align: center;
    border-top: 3px solid #e94560;
}

footer p {
    margin: 10px 0;
    color: #a8dadc;
}

footer strong {
    color: #ffd700;
}

.credits {
    font-style: italic;
    color: #00d9ff;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    section {
        padding: 20px;
    }

    section h2 {
        font-size: 1.5em;
    }

    .stats-grid,
    .mods-grid {
        grid-template-columns: 1fr;
    }

    .strategy-columns {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9em;
    }

    thead th,
    tbody td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    section {
        padding: 15px;
    }

    .stat-value {
        font-size: 2em;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.5s ease-in-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e94560 0%, #c72d4a 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff5a75 0%, #e94560 100%);
}
