/* Blood Tool Theme Enhancements aligned with dayz.css */

.blood-type-btn {
    padding: 0.9rem 0.5rem;
    font-size: 1.15rem;
    font-family: var(--dz-font-mono, monospace);
    font-weight: 700;
    color: #fff;
    background: var(--dz-bg-card, #141c24);
    border: 1px solid var(--dz-border, rgba(255, 255, 255, 0.1));
    border-radius: var(--dz-radius, 8px);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.blood-type-btn:hover {
    transform: translateY(-2px);
    border-color: var(--dz-red, #e63946);
    box-shadow: 0 8px 20px -4px var(--dz-red-glow, rgba(230, 57, 70, 0.4));
}

.blood-type-btn.selected {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.3) 0%, rgba(18, 24, 30, 0.98) 100%);
    border-color: var(--dz-red, #e63946);
    box-shadow: 0 0 16px var(--dz-red-soft, rgba(230, 57, 70, 0.2)), 0 0 0 2px var(--dz-red, #e63946);
    color: #fff;
    transform: scale(1.04);
}

.blood-type-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--dz-green, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-family: sans-serif;
}

/* Matrix Cell Styles */
.matrix-cell {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-family: var(--dz-font-mono, monospace);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.matrix-cell:hover {
    transform: scale(1.05);
    z-index: 10;
}

.matrix-cell.safe {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.matrix-cell.safe:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
}

.matrix-cell.unsafe {
    background: rgba(230, 57, 70, 0.18);
    border: 1px solid rgba(230, 57, 70, 0.35);
    color: #f87171;
}

.matrix-cell.unsafe:hover {
    background: rgba(230, 57, 70, 0.3);
    border-color: #e63946;
}

.matrix-cell::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 0.9rem;
    background: #0d1217;
    border: 1px solid var(--dz-border, rgba(255, 255, 255, 0.1));
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.matrix-cell:hover::after {
    opacity: 1;
}

/* Result Card Styles */
.result-safe {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(10, 18, 14, 0.8) 100%);
    border: 2px solid #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
    animation: slideIn 0.35s ease-out;
}

.result-unsafe {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.25) 0%, rgba(20, 10, 12, 0.8) 100%);
    border: 2px solid #e63946;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
    animation: slideIn 0.35s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info card styles */
.info-card {
    background: var(--dz-bg-card, rgba(20, 28, 36, 0.8));
    border: 1px solid var(--dz-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--dz-radius, 8px);
    padding: 1.25rem;
}

.info-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 0.35rem 0;
    color: var(--dz-text-muted, #94a3b8);
    font-size: 0.875rem;
    font-family: var(--dz-font-mono, monospace);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card li::before {
    content: '▸';
    color: var(--dz-amber, #f59e0b);
    font-weight: bold;
}
