/* WishWell Tour - Mobile Enhancements */
/* Additional responsive improvements for tour system */

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .tour-btn {
        min-height: 44px; /* Better touch targets */
        flex: 1;
    }
    
    .tour-navigation {
        justify-content: space-between;
    }
    
    .tour-skip-btn {
        width: 100%;
        order: 2; /* Move skip to bottom */
    }
    
    .tour-tooltip-text {
        line-height: 1.5; /* Better readability */
    }
}

/* Extra small screens (iPhone SE, older phones) */
@media (max-width: 375px) {
    .tour-tooltip {
        max-width: 95vw;
        min-width: 260px;
        margin: 0 2.5vw;
    }
    
    .tour-tooltip-header,
    .tour-tooltip-body,
    .tour-tooltip-footer {
        padding: 14px 16px;
    }
    
    .tour-tooltip-title {
        font-size: 15px;
    }
    
    .tour-tooltip-text {
        font-size: 13px;
        margin-bottom: 16px;
        line-height: 1.5;
    }
    
    .tour-step-counter {
        font-size: 12px;
    }
    
    .tour-btn {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 44px;
    }
    
    /* Prevent tooltip from being too tall on small screens */
    .tour-tooltip {
        max-height: 80vh;
    }
    
    .tour-tooltip-content {
        max-height: 75vh;
        overflow-y: auto;
    }
    
    /* Ensure close button is large enough */
    .tour-close-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

/* Landscape mode on mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .tour-tooltip {
        max-width: 60vw;
        max-height: 85vh;
    }
    
    .tour-tooltip-content {
        max-height: 75vh;
        overflow-y: auto;
    }
    
    .tour-tooltip-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .tour-tooltip-body {
        padding: 12px 18px;
    }
    
    .tour-tooltip-header,
    .tour-tooltip-footer {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* Very wide screens - don't let tooltip get too large */
@media (min-width: 1200px) {
    .tour-tooltip {
        max-width: 420px;
    }
}

/* Ensure proper stacking on all screen sizes */
@media (max-width: 768px) {
    body.tour-active {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .tour-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

/* Improve touch interaction */
@media (hover: none) and (pointer: coarse) {
    .tour-btn {
        min-height: 48px; /* Even larger touch targets for touch-only devices */
    }
    
    .tour-close-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Remove hover states on touch devices */
    .tour-btn:hover {
        transform: none;
    }
}
