/**
 * Demo-Tour Styles
 * 
 * @package FamilyWichtelnProPlus
 * @since 1.0.0
 */

/* Tour Overlay */
.fwp-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    pointer-events: auto;
    display: none; /* Standardmäßig versteckt */
}

.fwp-tour-overlay.active {
    display: block;
}

.fwp-tour-highlight-box {
    position: fixed;
    border: 3px solid #3b82f6;
    border-radius: 8px;
    pointer-events: none;
    z-index: 9999;
    background: transparent;
}

/* Tour Overlay Highlight Box - muss klickbar sein */
.fwp-tour-overlay[style*="position: absolute"] {
    pointer-events: auto;
    z-index: 9999;
}

/* Tour Banner */
.fwp-tour-banner,
.fwp-demo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.fwp-tour-banner p,
.fwp-demo-banner p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.fwp-tour-banner .fwp-badge,
.fwp-demo-banner .fwp-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Tour Bubble */
.fwp-tour-bubble {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 400px;
    display: none;
    animation: fwpTourBubbleFadeIn 0.3s ease-out;
}

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

.fwp-tour-bubble__content {
    padding: 1.5rem;
}

.fwp-tour-bubble__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.fwp-tour-bubble__header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.fwp-tour-step-counter {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 1rem;
}

.fwp-tour-bubble__body {
    margin-bottom: 1rem;
}

.fwp-tour-bubble__body p {
    margin: 0 0 0.75rem 0;
    color: #4b5563;
    line-height: 1.6;
}

.fwp-tour-bubble__body p:last-child {
    margin-bottom: 0;
}

.fwp-tour-bubble__footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e5e7eb;
}

.fwp-tour-bubble__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.fwp-tour-bubble__actions .fwp-btn {
    flex: 1;
    min-width: 100px;
}

.fwp-tour-bubble__actions .fwp-btn--text {
    flex: 0 0 auto;
    min-width: auto;
    margin-left: auto;
    color: #6b7280;
    text-decoration: underline;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.fwp-tour-bubble__actions .fwp-btn--text:hover {
    color: #1f2937;
    background: transparent;
}

/* Tour Arrow (Pfeil zur Zielposition) */
.fwp-tour-bubble::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.fwp-tour-bubble[data-position="top"]::before {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.fwp-tour-bubble[data-position="bottom"]::before {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
}

.fwp-tour-bubble[data-position="left"]::before {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
}

.fwp-tour-bubble[data-position="right"]::before {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: white;
}

/* Demo Container */
.fwp-demo-tour-container {
    position: relative;
}

/* Highlight Box */
.fwp-tour-highlight-box {
    position: absolute;
    border: 3px solid #3b82f6;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Highlight Animation */
@keyframes fwpTourHighlight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

.fwp-tour-highlight {
    animation: fwpTourHighlight 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .fwp-tour-bubble {
        max-width: calc(100% - 40px);
        left: 20px !important;
        right: 20px;
    }
    
    .fwp-tour-banner,
    .fwp-demo-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fwp-tour-bubble__actions {
        flex-direction: column;
    }
    
    .fwp-tour-bubble__actions .fwp-btn {
        width: 100%;
    }
}

