/* --- Interactive Video Training Modal Styles --- */

/* Modal Overlay */
.guide-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.guide-modal-overlay.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: flex-start;
}

/* Modal Content Container */
.guide-modal-content {
    background: #1e293b;
    width: 100%;
    max-width: 1000px;
    border-radius: 1.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: auto 0;
    overflow: hidden;
}

/* Close Button */
.guide-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: color 0.2s;
}

.guide-close-btn:hover {
    color: white;
}

/* Intro & Header */
.guide-section-inner {
    padding: 3rem;
    background: #1e293b;
}

.guide-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.guide-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

/* Search Bar */
.guide-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.guide-search-container input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.guide-search-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.5s ease;
    border-radius: 3px;
}

.progress-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Steps Navigation Dots */
.steps-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.step-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.step-dot:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.step-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.step-dot.completed {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Content Area */
.tutorial-content {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid var(--border);
    min-height: 400px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.step-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Headers & Grids */
.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-icon {
    font-size: 2.5rem;
}

.step-title {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
}

.step-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tutorial-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

.tutorial-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}

.tutorial-card h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
}

.tutorial-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Nav Buttons & Tips */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.tip-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip-title {
    color: #34d399;
    font-weight: 600;
    white-space: nowrap;
}

.tip-box p {
    color: #d1fae5;
    font-size: 0.95rem;
    margin: 0;
}

/* Completion Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #1e293b;
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}