/* Styles des modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style de la modale du shop */
.modal-content {
    background-color: var(--darker-bg);
    border-radius: 15px;
    width: 90%;
    max-width: 1000px; /* Augmenté de 600px */
    max-height: 90vh; /* Augmenté de 80vh */
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer/Edge */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px;
    border-bottom: 2px solid var(--button-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    font-size: 2em;
    color: var(--primary-green);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-body::-webkit-scrollbar {
    display: none;
}


/* Styles pour les onglets */
.shop-tabs {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
}

.tab-button {
    padding: 10px 20px;
    background: var(--button-bg);
    border: 1px solid var(--primary-green);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(76, 175, 80, 0.2);
}

.tab-button.active {
    background: var(--primary-green);
    box-shadow: 0 0 10px var(--primary-green);
}

/* Contenu des onglets */
.tab-content {
    display: none;
    padding: 20px;
}

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

/* Style de l'onglet Welcome */
.welcome-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-green);
    border-radius: 15px;
    padding: 20px;
}

.welcome-card h3 {
    color: var(--primary-green);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.info-section {
    margin-top: 20px;
}

.info-section h4 {
    color: var(--primary-green);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.info-section ul {
    list-style: disc;
    margin-left: 20px;
}

.info-section li {
    margin: 10px 0;
    color: var(--text-primary);
}

.active-text {
    color: #ce52ff;
    font-weight: bold;
}

.passive-text {
    color: var(--primary-green);
    font-weight: bold;
}

/* Style de l'onglet Rarities */
.rarities-grid {
    display: grid;
    gap: 15px;
}

.rarity-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rarity-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rarity-multiplier {
    font-size: 0.9em;
    opacity: 0.8;
}