/* Button Styles */
.wsd-trigger-btn.links_btn {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    padding: 8px 16px;
    margin: 10px 5px;
    font-weight: 500;
    color: #fff; /* Assumed from var(--bs-white) */
    border-radius: 50px;
    border: none;
    transition: all 0.3s cubic-bezier(.5, 2.5, .7, .7);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    /* Default background from user requirement */
    background: linear-gradient(135deg, #ec5151, #0b7db5);
}

/* Pseudo-element base styles (FontAwesome) */
/* We only set common properties here, 'content' is handled by inline/scoped CSS or default theme CSS */
.wsd-trigger-btn.links_btn:before {
    font-family: 'FontAwesome', sans-serif; 
    margin-right: 8px;
    font-size: 14px;
    font-weight: normal;
}

.wsd-trigger-btn.links_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Modal Styles - Adapted from l4d2_map_list.php */
.wsd-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999; /* Higher z-index */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wsd-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.wsd-modal-content {
    background: #fff;
    width: 90%;
    max-width: 700px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.wsd-modal-backdrop.active .wsd-modal-content {
    transform: scale(1);
}

.wsd-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    border: none;
    padding: 0;
}

.wsd-modal-close:hover {
    background: #fff;
}

.wsd-modal-body {
    padding: 60px 30px 40px 30px; /* Increased top padding to account for missing title */
    overflow-y: auto;
}

.wsd-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1d1d1f;
    display: block;
    line-height: 1.2;
}

.wsd-modal-html {
    font-size: 16px;
    color: #1d1d1f;
    line-height: 1.6;
}

.wsd-modal-html img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 10px 0;
}
