/**
 * Site Tour Styles - Custom styling for Intro.js tooltips
 * Matches ChipVerify dark theme
 */

/* Override Intro.js default styles to match dark theme */
.introjs-overlay {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Tooltip container */
.chipverify-tour-tooltip {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border: 2px solid #9292b1 !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5),
                0 10px 10px -5px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(146, 146, 177, 0.3) !important;
    color: #f3f4f6 !important;
    max-width: 500px !important;
    min-width: 350px !important;
}

/* Tooltip header */
.chipverify-tour-tooltip .introjs-tooltip-header {
    background: linear-gradient(135deg, #9292b1 0%, #011e5c 100%) !important;
    border-bottom: none !important;
    border-radius: 0.875rem 0.875rem 0 0 !important;
    padding: 1.25rem 1.5rem !important;
}

.chipverify-tour-tooltip .introjs-tooltip-title {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    text-align: left !important;
    margin: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Close button (X symbol) */
.chipverify-tour-tooltip .introjs-skipbutton {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.75rem !important;
    font-weight: 400 !important;
    text-shadow: none !important;
    transition: all 0.2s ease !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1 !important;
    min-width: auto !important;
}

.chipverify-tour-tooltip .introjs-skipbutton:hover {
    color: #ffffff !important;
    background: transparent !important;
    transform: scale(1.15) !important;
}

/* Tooltip content */
.chipverify-tour-tooltip .introjs-tooltiptext {
    padding: 1.5rem !important;
    color: #e5e7eb !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
}

.chipverify-tour-tooltip .introjs-tooltiptext strong {
    color: #a5a5d6 !important;
    font-weight: 600 !important;
}

.chipverify-tour-tooltip .introjs-tooltiptext ul {
    color: #d1d5db !important;
}

.chipverify-tour-tooltip .introjs-tooltiptext li {
    margin: 0.5rem 0 !important;
}

.chipverify-tour-tooltip .introjs-tooltiptext kbd {
    background: #374151 !important;
    border: 1px solid #4b5563 !important;
    border-radius: 0.25rem !important;
    padding: 0.25rem 0.5rem !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.875rem !important;
    color: #f3f4f6 !important;
}

/* Progress bar */
.chipverify-tour-tooltip .introjs-progress {
    background: #374151 !important;
    border-radius: 0.5rem !important;
    height: 6px !important;
    margin: 0 1.5rem 1rem 1.5rem !important;
    overflow: hidden !important;
}

.chipverify-tour-tooltip .introjs-progressbar {
    background: linear-gradient(90deg, #9292b1 0%, #5c72b8 100%) !important;
    border-radius: 0.5rem !important;
    transition: width 0.3s ease !important;
}

/* Bullets (step indicators) */
.chipverify-tour-tooltip .introjs-bullets {
    padding: 0 1.5rem 1rem 1.5rem !important;
}

.chipverify-tour-tooltip .introjs-bullets ul {
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.chipverify-tour-tooltip .introjs-bullets ul li {
    margin: 0 !important;
    padding: 0 !important;
}

.chipverify-tour-tooltip .introjs-bullets ul li a {
    background: #4b5563 !important;
    border: 2px solid transparent !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.chipverify-tour-tooltip .introjs-bullets ul li a:hover {
    background: #6b7280 !important;
    transform: scale(1.2);
}

.chipverify-tour-tooltip .introjs-bullets ul li a.active {
    background: #9292b1 !important;
    border-color: #a5a5d6 !important;
    width: 12px !important;
    height: 12px !important;
}

/* Button container */
.chipverify-tour-tooltip .introjs-tooltipbuttons {
    border-top: 1px solid #374151 !important;
    padding: 1rem 1.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

/* Buttons */
.chipverify-tour-tooltip .introjs-button {
    background: #374151 !important;
    border: 1px solid #4b5563 !important;
    border-radius: 0.5rem !important;
    color: #f3f4f6 !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    text-shadow: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.chipverify-tour-tooltip .introjs-button:hover {
    background: #4b5563 !important;
    border-color: #6b7280 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4) !important;
}

.chipverify-tour-tooltip .introjs-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.chipverify-tour-tooltip .introjs-button:focus {
    outline: 2px solid #9292b1 !important;
    outline-offset: 2px !important;
}

/* Next button (primary) */
.chipverify-tour-tooltip .introjs-nextbutton {
    background: linear-gradient(135deg, #9292b1 0%, #011e5c 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

.chipverify-tour-tooltip .introjs-nextbutton:hover {
    background: linear-gradient(135deg, #7a7a9e 0%, #011444 100%) !important;
}

/* Done button */
.chipverify-tour-tooltip .introjs-donebutton {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #10b981 !important;
    color: #ffffff !important;
}

.chipverify-tour-tooltip .introjs-donebutton:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #059669 !important;
}

/* Skip button (text button) */
.chipverify-tour-tooltip .introjs-skipbutton.introjs-button {
    background: transparent !important;
    border: 1px solid #6b7280 !important;
    color: #9ca3af !important;
}

.chipverify-tour-tooltip .introjs-skipbutton.introjs-button:hover {
    background: rgba(107, 114, 128, 0.1) !important;
    border-color: #9ca3af !important;
    color: #d1d5db !important;
}

/* Disabled button */
.chipverify-tour-tooltip .introjs-button:disabled,
.chipverify-tour-tooltip .introjs-button.introjs-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.chipverify-tour-tooltip .introjs-button:disabled:hover,
.chipverify-tour-tooltip .introjs-button.introjs-disabled:hover {
    transform: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Highlighted element */
.chipverify-tour-highlight {
    box-shadow: 0 0 0 3px rgba(146, 146, 177, 0.5),
                0 0 0 6px rgba(146, 146, 177, 0.3) !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
}

/* Arrow */
.chipverify-tour-tooltip .introjs-arrow {
    border: 10px solid transparent !important;
}

.chipverify-tour-tooltip .introjs-arrow.top {
    border-bottom-color: #9292b1 !important;
    top: -20px !important;
}

.chipverify-tour-tooltip .introjs-arrow.bottom {
    border-top-color: #9292b1 !important;
    bottom: -20px !important;
}

.chipverify-tour-tooltip .introjs-arrow.left {
    border-right-color: #9292b1 !important;
    left: -20px !important;
}

.chipverify-tour-tooltip .introjs-arrow.right {
    border-left-color: #9292b1 !important;
    right: -20px !important;
}

/* Floating helper layer */
.introjs-helperLayer {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 2px solid #9292b1 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0 0 4px rgba(146, 146, 177, 0.2),
                0 0 20px rgba(146, 146, 177, 0.3) !important;
}

/* Animation for highlighted elements */
@keyframes pulse-highlight {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(146, 146, 177, 0.5),
                    0 0 0 6px rgba(146, 146, 177, 0.3);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(146, 146, 177, 0.7),
                    0 0 0 6px rgba(146, 146, 177, 0.4);
    }
}

.chipverify-tour-highlight {
    animation: pulse-highlight 2s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chipverify-tour-tooltip {
        min-width: 280px !important;
        max-width: 90vw !important;
    }

    .chipverify-tour-tooltip .introjs-tooltip-header {
        padding: 1rem !important;
    }

    .chipverify-tour-tooltip .introjs-tooltip-title {
        font-size: 1.125rem !important;
    }

    .chipverify-tour-tooltip .introjs-tooltiptext {
        padding: 1rem !important;
        font-size: 0.875rem !important;
    }

    .chipverify-tour-tooltip .introjs-tooltipbuttons {
        padding: 0.75rem 1rem !important;
        flex-direction: column !important;
    }

    .chipverify-tour-tooltip .introjs-button {
        width: 100% !important;
        padding: 0.625rem 1rem !important;
    }
}
