/* Page fiche lune */

.moon-not-found {
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.moon-secret-tip {
    margin-top: -10px;
}

.moon-general-info {
    display: flex;
    gap: 25px;
    align-items: center;
    width: 100%;
}

.moon-image {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moon-image img {
    max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.moon-description {
    flex: 1;
    min-width: 0;
}

.moon-description p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.65;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Barres visuelles */
.moon-visual-infos {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.moon-visual-bar {
    width: 100%;
}

.moon-visual-bar-label {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.moon-visual-bar-track {
    position: relative;
    width: 100%;
    height: 30px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.moon-visual-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width 0.65s ease;
}

.moon-visual-bar-value {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 8px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    text-align: left;
}

.moon-visual-bar-value--dark {
    color: #1a1a1a;
}

.moon-visual-bar-value--light {
    color: #ffffff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.45);
}

/* Sélecteur de sous-sections */
.sub-section-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.sub-section-btn.is-active {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.55);
}

.sub-section-panel {
    display: none;
}

.sub-section-panel.is-visible {
    display: block;
}

.sub-section-content {
    width: 100%;
}

/* Panneaux de contenu des onglets (hors Généralités) */
.moon-text-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.moon-text-panel p,
.moon-text-panel span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.65;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.moon-text-panel p {
    margin: 0 0 12px;
}

.moon-text-panel p:last-child {
    margin-bottom: 0;
}

.moon-text-panel table {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.moon-text-panel table:last-child {
    margin-bottom: 0;
}

/* Bloc terminal Lethal */
.bestiary-visual-container {
    width: 90%;
    margin: 0 auto;
    background-color: #110F09;
    border: 2px solid #0CF415;
    border-radius: 12px;
    padding: 20px 24px;
}

.bestiary-visual-container p {
    color: #0CF415;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 10px;
}

.bestiary-visual-container p:last-child {
    margin-bottom: 0;
}

/* Tableaux des onglets */
#moon-dayMonsters-content p,
#moon-nightMonsters-content p,
#moon-insideMonsters-content p,
#moon-interiorTypes-content p {
    margin-bottom: 10px;
    text-align: center;
}

/* Valeurs importantes en gras */
#day-monsters-slots,
#night-monsters-slots,
#inside-monsters-slots,
#interior-size-multiplier,
#mono-item-day-probability-global-probability-value {
    font-weight: bold;
}

/* Textes explicatifs en italique */
#profits-total-esperance-text {
    font-style: italic;
}

.moon-data-table-wrap {
    overflow-x: auto;
}

.moon-data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.moon-data-table caption {
    caption-side: top;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.moon-data-table th,
.moon-data-table td {
    padding: 12px 18px;
    text-align: left;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.moon-data-table thead th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.moon-data-table tbody th[scope="row"] {
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
}

.moon-data-table tr:last-child td,
.moon-data-table tr:last-child th {
    border-bottom: none;
}

.moon-data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.06);
}

.day-monsters-table,
.night-monsters-table,
.inside-monsters-table,
.interior-types-table,
.traps-table,
.profits-table,
.mono-item-day-rare-items-table,
.mono-item-day-two-handed-items-table,
.mono-item-day-probability-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.day-monsters-table caption,
.night-monsters-table caption,
.inside-monsters-table caption,
.interior-types-table caption,
.traps-table caption,
.profits-table caption,
.mono-item-day-rare-items-table caption,
.mono-item-day-two-handed-items-table caption,
.mono-item-day-probability-table caption {
    caption-side: top;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.day-monsters-table th,
.day-monsters-table td,
.night-monsters-table th,
.night-monsters-table td,
.inside-monsters-table th,
.inside-monsters-table td,
.interior-types-table th,
.interior-types-table td,
.traps-table th,
.traps-table td,
.profits-table th,
.profits-table td,
.mono-item-day-rare-items-table th,
.mono-item-day-rare-items-table td,
.mono-item-day-two-handed-items-table th,
.mono-item-day-two-handed-items-table td,
.mono-item-day-probability-table th,
.mono-item-day-probability-table td {
    padding: 12px 18px;
    text-align: left;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.day-monsters-table thead th,
.night-monsters-table thead th,
.inside-monsters-table thead th,
.interior-types-table thead th,
.traps-table thead th,
.profits-table thead th,
.mono-item-day-rare-items-table thead th,
.mono-item-day-two-handed-items-table thead th,
.mono-item-day-probability-table thead th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.day-monsters-table tbody th[scope="row"],
.night-monsters-table tbody th[scope="row"],
.inside-monsters-table tbody th[scope="row"],
.interior-types-table tbody th[scope="row"],
.traps-table tbody th[scope="row"],
.profits-table tbody th[scope="row"],
.mono-item-day-probability-table tbody th[scope="row"] {
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
}

.moon-mono-item-day-intro {
    margin-bottom: 20px;
}

#source-link a {
    color: rgba(255, 255, 255, 0.95);
}

#moon-monoItemDay-content-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 768px) {
    .moon-general-info {
        flex-direction: column;
    }

    .moon-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .moon-description p {
        font-size: 1rem;
    }

    .bestiary-visual-container {
        width: 100%;
        padding: 16px 18px;
    }

    .moon-text-panel {
        padding: 18px 20px;
    }

    .day-monsters-table th,
    .day-monsters-table td,
    .night-monsters-table th,
    .night-monsters-table td,
    .inside-monsters-table th,
    .inside-monsters-table td,
    .interior-types-table th,
    .interior-types-table td,
    .traps-table th,
    .traps-table td,
    .profits-table th,
    .profits-table td,
    .mono-item-day-rare-items-table th,
    .mono-item-day-rare-items-table td,
    .mono-item-day-two-handed-items-table th,
    .mono-item-day-two-handed-items-table td,
    .mono-item-day-probability-table th,
    .mono-item-day-probability-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

#source-link {
    text-align: center;
}
