/* tutorial.css - Tutorial Modal Styles */

/* Modal Styles - Compact & Mobile Friendly */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    width: 92%;
    max-width: 700px;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    animation: slideUp 0.3s ease;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--card-border);
    background: var(--card-bg);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.2rem;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h2 i {
    font-size: 1.25rem;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary-red);
    background: rgba(229, 9, 20, 0.1);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Compact Swiper Styles */
.tutorial-swiper {
    width: 100%;
    border-radius: 20px;
}

.tutorial-slide {
    padding: 20px 16px;
}

.slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slide-icon {
    width: 70px;
    height: 70px;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.slide-icon i {
    font-size: 32px;
    color: var(--primary-red);
}

.slide-number {
    background: var(--primary-red);
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.slide-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-red);
}

.slide-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
    max-width: 90%;
}

.slide-tip {
    background: rgba(229, 9, 20, 0.08);
    border-radius: 30px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    font-size: 0.75rem;
    margin-top: 12px;
}

.slide-tip i {
    font-size: 0.7rem;
}

/* Swiper Navigation - Compact */
.swiper-button-next, .swiper-button-prev {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 14px;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-red);
    opacity: 1;
    width: 8px;
    height: 8px;
}

/* Modal Footer */
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
    background: var(--card-bg);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-red);
}

.btn-close-tutorial {
    background: var(--gradient-1);
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-close-tutorial:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-header h2 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .tutorial-slide {
        padding: 12px;
    }
    
    .slide-title {
        font-size: 1rem;
    }
    
    .slide-description {
        font-size: 0.8rem;
        max-width: 100%;
    }
    
    .slide-icon {
        width: 55px;
        height: 55px;
    }
    
    .slide-icon i {
        font-size: 26px;
    }
    
    .slide-tip {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
    
    .checkbox-label {
        font-size: 0.7rem;
    }
    
    .btn-close-tutorial {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 15% auto;
    }
    
    .modal-header h2 {
        font-size: 0.9rem;
    }
    
    .modal-header h2 i {
        font-size: 1rem;
    }
    
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
}