
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tour-overlay.active {
    opacity: 0;
    visibility: visible;
}

.tour-spotlight {
    position: fixed;
    border: 3px solid #f3d27a;
    border-radius: 15px;
    z-index: 9999;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85),
                0 0 30px #f3d27a;
    transition: all 0.5s ease;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.tour-overlay.active ~ .tour-spotlight {
    opacity: 1;
    visibility: visible;
}

.tour-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #f3d27a;
    border-radius: 15px;
    padding: 25px;
    max-width: 400px;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tour-step {
    background: #f3d27a;
    color: #1a1a1a;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.tour-close {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-title {
    font-size: 22px;
    font-weight: bold;
    color: #f3d27a;
    margin-bottom: 12px;
}

.tour-description {
    font-size: 15px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.tour-controls {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.tour-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    flex: 1;
}

.tour-btn-prev {
    background: #444;
    color: white;
}

.tour-btn-prev:hover {
    background: #555;
}

.tour-btn-next {
    background: #f3d27a;
    color: #1a1a1a;
}

.tour-btn-next:hover {
    background: #f3d27a;
    transform: translateY(-2px);
}

.tour-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.start-tour-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #f3d27a 0%, #ffed4e 100%);
    color: #1a1a1a;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.start-tour-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 215, 0, 0.8);
    }
}

.tour-progress {
    width: 100%;
    height: 6px;
    background: #444;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.tour-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f3d27a 0%, #ffed4e 100%);
    transition: width 0.5s ease;
}

@media (max-width: 768px) {
    .tour-tooltip {
        width: 90%; /* کمتر از عرض صفحه */
        font-size: 14px; /* کوچکتر کردن فونت */
        padding: 10px;
    }

    .tour-spotlight {
        border-width: 2px; /* نازک‌تر کردن خط زرد */
    }

    .tour-controls button {
        font-size: 12px;
        padding: 5px 8px;
    }
}
