/* Help Modal Styles */
.help-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
}

.help-content {
    position: relative;
    background: linear-gradient(to bottom, #0a0a2a, #1a1a4a);
    margin: 5% auto;
    padding: 25px;
    width: 80%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    border: 2px solid #4169E1;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(65, 105, 225, 0.6);
    color: #e0e0ff;
    font-family: 'Quicksand', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #4169E1 #0a0a2a;
}

.help-content::-webkit-scrollbar {
    width: 8px;
}

.help-content::-webkit-scrollbar-track {
    background: #0a0a2a;
    border-radius: 4px;
}

.help-content::-webkit-scrollbar-thumb {
    background-color: #4169E1;
    border-radius: 4px;
}

.help-content h2 {
    font-family: 'Cinzel', serif;
    text-align: center;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
    font-size: 28px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

.help-content h3 {
    font-family: 'Cinzel', serif;
    color: #ADD8E6;
    border-bottom: 1px solid #4169E1;
    padding-bottom: 5px;
    margin-top: 20px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.help-content h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #4169E1, transparent);
}

.help-section {
    margin-bottom: 25px;
    line-height: 1.5;
    background: rgba(10, 10, 45, 0.5);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #4169E1;
}

.help-section:last-child {
    border-left: 3px solid #FFD700;
    background: rgba(35, 20, 45, 0.5);
}

.help-section ul {
    margin-left: 20px;
    list-style-type: none;
}

.help-section li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.help-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ADD8E6;
}

.help-section p {
    margin-bottom: 10px;
}

.help-section em {
    color: #ffcc66;
    font-style: italic;
}

.help-section strong {
    color: #ADD8E6;
    font-weight: bold;
}

/* Magic affinity colors */
.burn-text {
    color: #FF6B4D !important;
}

.poison-text {
    color: #84FF4D !important;
}

.freeze-text {
    color: #4DA6FF !important;
}

.confusion-text {
    color: #D14DFF !important;
}

.close-help {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-help:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
