/* Card Link Styling */
.lorcana-card-link {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.lorcana-card-link:hover {
    color: #0056b3;
}

.lorcana-card-link.loading {
    color: #999;
    cursor: wait;
}

/* Modal Styling */
.lorcana-card-modal {
    position: fixed !important;
    z-index: 999999 !important;
    background: white !important;
    border: 1px solid white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    width: 800px !important;
    max-height: 500px !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    pointer-events: none;
}

/* Force width with higher specificity */
body .lorcana-card-modal,
html .lorcana-card-modal,
#card-modal.lorcana-card-modal {
    width: 800px !important;
    min-width: 800px !important;
    max-width: 800px !important;
}

.lorcana-card-modal.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Debug sticky mode */
.lorcana-card-modal.debug-sticky {
    border: 3px solid red !important;
    box-shadow: 0 0 20px rgba(255,0,0,0.5) !important;
}

.modal-content {
    padding: 0;
}

.modal-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.card-number {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.modal-body {
    padding: 16px;
    max-height: 430px;
    overflow-y: auto;
}

.card-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 12px;
    display: block;
}

.card-details {
    font-size: 12px;
    line-height: 1.4;
}

.card-details div {
    margin-bottom: 6px;
}

.card-details strong {
    color: #333;
}

.card-ability {
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.card-flavor {
    margin-top: 8px;
    font-style: italic;
    color: #666;
    font-size: 11px;
    line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lorcana-card-modal {
        width: 95vw !important;
        max-height: 400px !important;
    }
    
    .modal-body {
        max-height: 330px;
    }
}
