/* ================================
   FASTPANEL - CONFIGURATEUR GAMING
   Design professionnel 2024
   Système de thème dynamique par jeu
   ================================ */

/* Variables CSS de base */
:root {
    --primary-900: #0f172a;
    --primary-800: #1e293b;
    --primary-700: #334155;
    --primary-600: #475569;
    --primary-500: #64748b;
    --primary-400: #94a3b8;
    --primary-300: #cbd5e1;
    --primary-200: #e2e8f0;
    --primary-100: #f1f5f9;

    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-400: #4ade80;

    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;

    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-400: #fb923c;

    --white: #ffffff;
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Thème par défaut (Minecraft - Vert) */
    --theme-primary: #22c55e;
    --theme-light: #4ade80;
    --theme-dark: #16a34a;
    --theme-rgb: 34, 197, 94;
}

/* Thème Minecraft (Vert) */
.theme-minecraft {
    --theme-primary: #22c55e;
    --theme-light: #4ade80;
    --theme-dark: #16a34a;
    --theme-rgb: 34, 197, 94;
}

/* Thème Garry's Mod (Bleu) */
.theme-garrysmod {
    --theme-primary: #3b82f6;
    --theme-light: #60a5fa;
    --theme-dark: #2563eb;
    --theme-rgb: 59, 130, 246;
}

/* Thème FiveM (Orange) */
.theme-fivem {
    --theme-primary: #f97316;
    --theme-light: #fb923c;
    --theme-dark: #ea580c;
    --theme-rgb: 249, 115, 22;
}

/* ================================
   HERO SECTION
   ================================ */

.custom-hero-section {
    background: linear-gradient(135deg, var(--primary-900) 0%, #0c1929 50%, var(--primary-800) 100%);
    position: relative;
    overflow: hidden;
    padding: 140px 0 80px;
    min-height: 40vh;
    transition: all 0.5s ease;
}

/* Fondu en bas du hero */
.custom-hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(15, 23, 42, 0.3) 30%,
        rgba(15, 23, 42, 0.7) 60%,
        var(--primary-900) 100%
    );
    z-index: 3;
    pointer-events: none;
}

.custom-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(var(--theme-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(var(--theme-rgb), 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(var(--theme-rgb), 0.08) 0%, transparent 40%);
    transition: background 0.5s ease;
}

.custom-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.custom-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--theme-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 20s ease-in-out infinite;
    transition: background 0.5s ease;
}

.custom-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.custom-particle:nth-child(2) { top: 60%; left: 20%; animation-delay: 3s; }
.custom-particle:nth-child(3) { top: 30%; left: 80%; animation-delay: 6s; }
.custom-particle:nth-child(4) { top: 70%; left: 70%; animation-delay: 9s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-30px) translateX(10px); opacity: 0.5; }
}

.custom-gradient-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--theme-rgb), 0.15) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulseOrb 6s ease-in-out infinite;
    transition: background 0.5s ease;
}

.custom-orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
}

.custom-orb-2 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes pulseOrb {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

.custom-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Badge */
.custom-badge {
    background: rgba(var(--theme-rgb), 0.1);
    border: 1px solid rgba(var(--theme-rgb), 0.3);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    transition: all 0.5s ease;
}

.custom-badge i {
    color: var(--theme-primary);
    font-size: 14px;
    transition: color 0.5s ease;
}

.custom-badge span {
    color: var(--theme-light);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.5s ease;
}

/* Title */
.custom-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.custom-title-gradient {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.5s ease;
}

/* Breadcrumb */
.custom-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    margin-top: 20px;
}

.custom-breadcrumb a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-300);
    text-decoration: none;
    transition: all 0.2s ease;
}

.custom-breadcrumb a:hover {
    color: var(--theme-primary);
}

.custom-breadcrumb .fa-chevron-right {
    color: var(--primary-500);
    font-size: 10px;
}

.custom-breadcrumb > span {
    color: var(--theme-primary);
    font-weight: 600;
    transition: color 0.5s ease;
}

/* ================================
   MAIN SECTION
   ================================ */

.custom-main-section {
    background: var(--primary-900);
    padding: 80px 0 100px;
    position: relative;
}

/* Intro Card */
.custom-intro-card {
    background: rgba(var(--theme-rgb), 0.08);
    border: 1px solid rgba(var(--theme-rgb), 0.2);
    border-left: 4px solid var(--theme-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 40px;
    transition: all 0.5s ease;
}

.custom-intro-card h3 {
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.custom-intro-card h3 i {
    color: var(--theme-primary);
    margin-right: 10px;
    transition: color 0.5s ease;
}

.custom-intro-card p {
    color: var(--primary-300);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Configuration Card */
.custom-config-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    transition: border-color 0.5s ease;
}

.custom-config-card:hover {
    border-color: rgba(var(--theme-rgb), 0.3);
}

/* Game Selection */
.game-selection-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.game-selection-title i {
    color: var(--theme-primary);
    transition: color 0.5s ease;
}

.game-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.game-option {
    position: relative;
}

.game-option input[type="radio"] {
    display: none;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 160px;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--theme-rgb), 0.3);
    transform: translateY(-4px);
}

.game-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    object-fit: contain;
    border-radius: var(--radius);
}

.game-card h5 {
    color: var(--primary-200);
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.game-option input[type="radio"]:checked + .game-card {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-light));
    border-color: var(--theme-primary);
    box-shadow: 0 8px 24px rgba(var(--theme-rgb), 0.3);
    transform: translateY(-4px);
}

.game-option input[type="radio"]:checked + .game-card h5 {
    color: var(--white);
}

/* Resources Configuration */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.resource-config {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
}

.resource-config:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--theme-rgb), 0.3);
}

.resource-config > label {
    color: var(--theme-primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.5s ease;
}

/* Slider personnalisé */
.custom-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 20px 0;
    -webkit-appearance: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-light));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(var(--theme-rgb), 0.4);
    transition: all 0.2s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(var(--theme-rgb), 0.5);
}

.custom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-light));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(var(--theme-rgb), 0.4);
    transition: all 0.2s ease;
}

.slider-value {
    text-align: center;
    margin: 16px 0;
    color: var(--primary-300);
    font-size: 0.9375rem;
}

.editable-value {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 8px 12px;
    width: 70px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    display: inline-block;
    margin-right: 6px;
    transition: all 0.3s ease;
}

.editable-value:focus {
    border-color: var(--theme-primary);
    outline: none;
    background: rgba(var(--theme-rgb), 0.1);
    box-shadow: 0 0 0 3px rgba(var(--theme-rgb), 0.15);
}

.price-display {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-400);
    margin-top: 12px;
}

.price-display span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--theme-primary);
    transition: color 0.5s ease;
}

/* ================================
   SUMMARY CARD
   ================================ */

.custom-summary-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 100px;
    transition: border-color 0.5s ease;
}

.custom-summary-card:hover {
    border-color: rgba(var(--theme-rgb), 0.3);
}

.summary-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.summary-title i {
    color: var(--theme-primary);
    transition: color 0.5s ease;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-item:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.summary-label {
    font-size: 0.9375rem;
    color: var(--primary-300);
}

.summary-value {
    font-weight: 700;
    color: var(--theme-primary);
    font-size: 1rem;
    transition: color 0.5s ease;
}

.total-price {
    background: rgba(var(--theme-rgb), 0.08);
    border: 1px solid rgba(var(--theme-rgb), 0.2);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
}

.total-price h5 {
    margin: 0;
    color: var(--primary-200);
    font-weight: 600;
    font-size: 1rem;
}

.total-price strong {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    transition: all 0.5s ease;
}

.summary-note {
    text-align: center;
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.summary-note small {
    color: var(--primary-400);
    font-size: 0.8125rem;
    line-height: 1.8;
}

.summary-note i {
    color: var(--theme-primary);
    margin-right: 6px;
    transition: color 0.5s ease;
}

/* ================================
   SUBMIT BUTTON
   ================================ */

.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-submit-btn {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-light));
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 40px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(var(--theme-rgb), 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.custom-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--theme-rgb), 0.4);
}

.custom-submit-btn:active {
    transform: translateY(0);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 992px) {
    .custom-hero-section {
        padding: 120px 0 60px;
    }

    .custom-title {
        font-size: 2.25rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .custom-summary-card {
        position: static;
        margin-top: 32px;
    }

    .game-options-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .custom-hero-section {
        padding: 100px 0 50px;
        min-height: auto;
    }

    .custom-title {
        font-size: 1.875rem;
    }

    .custom-badge {
        padding: 8px 16px;
        gap: 8px;
    }

    .custom-badge span {
        font-size: 12px;
    }

    .custom-breadcrumb {
        font-size: 12px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .custom-main-section {
        padding: 60px 0 80px;
    }

    .custom-config-card {
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .game-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 32px;
    }

    .game-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px 20px;
        min-height: auto;
        gap: 16px;
    }

    .game-card img {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
    }

    .game-selection-title {
        font-size: 1.125rem;
    }

    .resource-config {
        padding: 20px;
    }

    .custom-summary-card {
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .total-price strong {
        font-size: 1.5rem;
    }

    .custom-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 32px;
    }
}

@media (max-width: 480px) {
    .custom-hero-section {
        padding: 90px 0 40px;
    }

    .custom-title {
        font-size: 1.5rem;
    }

    .custom-intro-card {
        padding: 20px;
    }

    .custom-config-card {
        padding: 20px;
    }

    .resource-config {
        padding: 16px;
    }

    .editable-value {
        width: 60px;
        padding: 6px 10px;
        font-size: 1rem;
    }

    .custom-summary-card {
        padding: 20px;
    }

    .summary-title {
        font-size: 1.125rem;
    }

    .total-price {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
