/* ==========================================================================
   OUR LDR STORY - REALTIME LOVE DOODLE BOARD STYLING (Live Shared Canvas)
   ========================================================================== */

/* Fullscreen Modal Backdrop */
#loveDoodleModal {
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.doodle-modal-card {
    background: radial-gradient(circle at 50% 0%, rgba(244, 63, 94, 0.12), rgba(15, 12, 27, 0.98) 75%);
    border: 1px solid rgba(244, 63, 94, 0.3);
    box-shadow: 0 0 60px rgba(244, 63, 94, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.02);
}

/* Canvas Area Container */
.doodle-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 62vh;
    min-height: 380px;
    max-height: 560px;
    background: #090714;
    border-radius: 1.5rem;
    overflow: hidden;
    touch-action: none; /* Prevents mobile scroll while doodling */
    user-select: none;
    -webkit-user-select: none;
    border: 1.5px solid rgba(226, 179, 189, 0.2);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.doodle-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* Watermark Stamp at Canvas Bottom */
.doodle-watermark {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-family: 'Great Vibes', cursive;
    font-size: 1.25rem;
    color: rgba(226, 179, 189, 0.35);
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.05em;
    z-index: 10;
}

/* Partner Live Pointer / Cursor */
.partner-cursor-badge {
    position: absolute;
    pointer-events: none;
    z-index: 30;
    transform: translate(-50%, -50%);
    transition: transform 0.06s linear, opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.partner-cursor-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff2e93;
    border: 2px solid #ffffff;
    box-shadow: 0 0 15px #ff2e93, 0 0 30px #ff2e93;
    animation: partnerHeartPulse 1.4s infinite ease-in-out;
}

.partner-cursor-label {
    background: rgba(15, 12, 27, 0.9);
    border: 1px solid rgba(244, 63, 94, 0.5);
    color: #ffd1dc;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

@keyframes partnerHeartPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.35);
        opacity: 1;
        box-shadow: 0 0 25px #ff2e93, 0 0 45px #ff2e93;
    }
}

/* Color Swatches Bar */
.doodle-color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    position: relative;
}

.doodle-color-btn:hover {
    transform: scale(1.2);
}

.doodle-color-btn.active {
    transform: scale(1.25);
    border-color: #ffffff;
    box-shadow: 0 0 16px currentColor;
}

.doodle-color-btn.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    animation: pulseRing 1.8s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.18); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Tool Buttons */
.doodle-tool-btn {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.doodle-tool-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.doodle-tool-btn.active {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.8), rgba(244, 63, 94, 0.8));
    border-color: #f43f5e;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

/* Brush Size Pill */
.doodle-size-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doodle-size-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.doodle-size-btn.active {
    background: #f43f5e;
    border-color: #fda4af;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.6);
}

.doodle-size-dot {
    border-radius: 50%;
    background: #ffffff;
}

/* Live Presence Indicator Badge */
.doodle-live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: livePulseGlow 1.5s infinite;
}

@keyframes livePulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}
