/**
 * Styles du garage en mode plein écran
 * Version: 1.0.0
 */

/* Garage fullscreen container */
.garage-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483646; /* Juste en dessous du quiz */
    background: rgba(0, 0, 0, 0.95);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.garage-fullscreen.show {
    opacity: 1;
}

/* Content container */
.garage-fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
}

/* Header */
.garage-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.garage-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.garage-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.garage-close-btn svg {
    width: 24px;
    height: 24px;
}

.garage-title {
    flex: 1;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.garage-icon {
    font-size: 2rem;
}

/* Affichage des pièces dans le header */
.garage-coins {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.garage-coins .coins-icon {
    font-size: 1.25rem;
}

.garage-coins .coins-value {
    color: #ffd700;
    font-weight: 700;
}

.garage-coins .coins-label {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Body */
.garage-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
}

.garage-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

/* Sections */
.garage-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.garage-section h2 {
    color: white;
    font-size: 1.25rem;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 1.5rem;
}

/* Véhicules et améliorations */
.garage-vehicles,
.garage-upgrades {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Vehicle cards */
.vehicle-inventory-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.vehicle-inventory-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

/* Upgrade cards */
.upgrade-inventory-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.upgrade-inventory-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.upgrade-inventory-icon {
    font-size: 2rem;
    filter: grayscale(0%);
}

.upgrade-inventory-info h4 {
    color: white;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.upgrade-inventory-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.875rem;
}

.upgrade-active-badge {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

/* Empty state */
.inventory-empty {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.inventory-empty p {
    margin: 0;
    font-size: 1.125rem;
}

/* Body class pour masquer l'interface principale */
body.garage-active #sg-wrapper {
    filter: blur(5px);
    pointer-events: none;
}

body.garage-active {
    overflow: hidden;
}

/* Scrollbar personnalisée */
.garage-body::-webkit-scrollbar {
    width: 8px;
}

.garage-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.garage-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.garage-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .garage-header {
        padding: 1rem;
    }
    
    .garage-title {
        font-size: 1.25rem;
    }
    
    .garage-body {
        padding: 1rem;
    }
    
    .garage-vehicles,
    .garage-upgrades {
        grid-template-columns: 1fr;
    }
    
    .garage-close-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Ajustements pour l'affichage des pièces sur mobile */
    .garage-coins {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
    
    .garage-coins .coins-icon {
        font-size: 1rem;
    }
    
    .garage-coins .coins-label {
        display: none; /* Cacher le mot "pièces" sur mobile pour gagner de l'espace */
    }
}

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

.garage-fullscreen.show .garage-section {
    animation: fadeInUp 0.5s ease forwards;
}

.garage-fullscreen.show .garage-section:nth-child(2) {
    animation-delay: 0.1s;
} 

/* Styles spécifiques pour le garage fullscreen */
.garage-fullscreen .vehicle-inventory-info h4 {
    color: #ffffff !important;
}

.garage-fullscreen .vehicle-inventory-specs {
    color: rgba(255, 255, 255, 0.8) !important;
}

.garage-fullscreen .vehicle-inventory-spec {
    color: rgba(255, 255, 255, 0.8) !important;
}

.garage-fullscreen .fuel-label {
    color: #000000 !important;
}

.garage-fullscreen .fuel-value {
    color: #000000 !important;
} 