/* Tour Styles - Following card-idea.png design */
.tour-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, 'system-ui', Roboto, 'Helvetica Neue', Helvetica, Tahoma, Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    color: #39364f;
    overflow: hidden;
    background: #696969;
}

.tour-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #696969;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.tour-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #d1410c;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.tour-slide {
    display: none;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
}

.tour-slide.active {
    display: block;
}

.tour-card {
    width: 100%;
    height: 100%;
    background: #605e71;
    
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slide-image {
    position: relative;
    width: 100%;
    height: 35%;
    overflow: hidden;
}

.slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    flex: 1;
    background: linear-gradient(135deg, #ff6b4a 0%, #e85532 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
}

.slide-title {
    font-size: clamp(28px, 8vw, 36px);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    text-align: left;
    position: absolute;
    top: -35%;
    left: 24px;
    right: 24px;
    height: calc(35% - 12px);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: 0.1s;
}

.steps-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: 0.4s;
}

.steps-content {
    width: 100%;
    display: block;
}

.tour-button {
    background: #fff;
    color: #39364f;
    border: none;
    border-radius: 4px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: calc(100% - 48px);
    position: absolute;
    bottom: 24px;
    left: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: 0.5s;
}

.tour-button:hover {
    background: #f8f7fa;
    transform: translateY(-1px);
}

.tour-button.primary {
    background: #fff;
    color: #39364f;
}

.tour-button.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: calc(100% - 48px);
}

/* When there are two buttons, move the first one up */
.tour-button:not(.secondary) + .tour-button.secondary {
    bottom: 24px;
}

.tour-button:not(.secondary):has(+ .tour-button.secondary) {
    bottom: 84px;
}

.tour-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .tour-card {
        border-radius: 0;
    }
    
    .steps-content h1 {
        font-size: 28px !important;
    }
    
    .steps-content h2 {
        font-size: 22px !important;
    }
    
    .steps-content p {
        font-size: 18px !important;
    }
}


/* Desktop Styles */
@media (min-width: 768px) {
    .tour-container {
        max-width: 414px;
        max-height: 896px;
        margin: 0 auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        
        overflow: hidden;
    }
    
    .steps-content h1 {
        font-size: 40px !important;
    }
    
    .steps-content h2 {
        font-size: 32px !important;
    }
    
    .steps-content p {
        font-size: 20px !important;
    }
}