/* Spotlight/Tooltip CSS for First-Time Visitors */

.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.spotlight-overlay.active {
    display: block;
}

.spotlight-highlight {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 20px 5px rgba(236, 96, 9, 0.8);
    }

    50% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 30px 10px rgba(236, 96, 9, 1);
    }
}

.spotlight-tooltip {
    position: fixed;
    z-index: 10000;
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    animation: slideIn 0.4s ease-out;
}

.spotlight-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.spotlight-tooltip.position-bottom::before {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent white transparent;
}

.spotlight-tooltip.position-top::before {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-color: white transparent transparent transparent;
}

.spotlight-tooltip.position-left::before {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.spotlight-tooltip.position-right::before {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.spotlight-tooltip-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.spotlight-tooltip-icon {
    font-size: 28px;
    color: #ec6009;
}

.spotlight-tooltip-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.spotlight-tooltip-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.spotlight-tooltip-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.spotlight-btn {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spotlight-btn-primary {
    background: linear-gradient(45deg, #895126, #ff4500);
    color: white;
}

.spotlight-btn-primary:hover {
    background: linear-gradient(45deg, #6d3e1d, #cc3700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 96, 9, 0.4);
}

.spotlight-btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.spotlight-btn-secondary:hover {
    background: #e0e0e0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .spotlight-tooltip {
        max-width: 280px;
        padding: 15px 18px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: auto !important;
        bottom: 80px !important;
    }

    .spotlight-tooltip::before {
        display: none;
    }

    .spotlight-tooltip-title {
        font-size: 16px;
    }

    .spotlight-tooltip-content {
        font-size: 13px;
    }

    .spotlight-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}