/* Tailwind CSS is now used for styling. See input.css and output.css. */

/* Custom tooltip — content source hidden, shown via JS as position:fixed */
.pw-tooltip {
    position: relative;
    display: inline-block;
    cursor: default;
}
.pw-tooltip .pw-tooltip-text {
    display: none;
}
#pw-tooltip-popup {
    position: fixed;
    z-index: 9999;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    white-space: normal;
    max-width: 300px;
    width: max-content;
    pointer-events: none;
}

/* Babillard canvas cork board background */
.babillard-canvas {
    background-color: #d4a574;
    background-image:
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3CfeColorMatrix values='0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)'/%3E%3C/svg%3E"),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
    background-blend-mode: multiply;
}
.babillard-pin {
    touch-action: none;
}
.babillard-pin.pin-selected {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Genealogy tree */
.gen-tree-viewport {
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.gen-tree-viewport:active {
    cursor: grabbing;
}
.gen-card {
    position: absolute;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 8px 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.15s;
}
.gen-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.gen-card.male {
    border-color: #93c5fd;
}
.gen-card.female {
    border-color: #f9a8d4;
}
.gen-card-portrait {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gen-tree-svg line {
    stroke: #9ca3af;
    stroke-width: 1.5;
}
.gen-tree-svg path {
    stroke: #9ca3af;
    stroke-width: 1.5;
    fill: none;
}
