/* Link Modal Styles */
.link-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.link-modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.link-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
    z-index: 10;
}

.link-modal-close:hover {
    color: #333;
}

.link-modal-header {
    padding: 20px 20px 10px;
    text-align: center;
}

.link-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.link-modal-body {
    padding: 10px 25px;
    text-align: center;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.link-modal-body a {
    color: #00a1d6; /* Bilibili blue */
    word-break: break-all;
    text-decoration: none;
    margin-top: 5px;
}

.link-modal-body a:hover {
    text-decoration: underline;
}

.link-modal-footer {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.link-modal-btn {
    background: #00a1d6;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.link-modal-btn:hover {
    background: #008bb8;
    transform: translateY(-1px);
}

.link-modal-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Dark mode support if applicable */
[data-theme="dark"] .link-modal-content {
    background: #2d2d2d;
    color: #eee;
}

[data-theme="dark"] .link-modal-header h3 {
    color: #fff;
}

[data-theme="dark"] .link-modal-body {
    color: #ccc;
}
