/* Help Button - Floating Action Button */
.help-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.help-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    animation: none;
}

.help-button:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3), 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3), 0 0 0 15px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3), 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Help Modal */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.help-modal.show {
    display: flex;
    opacity: 1;
}

.help-modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.help-modal.show .help-modal-content {
    transform: scale(1);
}

.help-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    text-align: center;
    position: relative;
}

.help-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.help-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.help-close:hover {
    opacity: 1;
}

.help-modal-body {
    padding: 30px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.help-section {
    margin-bottom: 30px;
}

.help-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-section h3 .icon {
    font-size: 22px;
}

.help-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.help-section ul {
    color: #666;
    line-height: 1.6;
    padding-left: 20px;
}

.help-section li {
    margin-bottom: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.feature-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.step-list li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #667eea;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .help-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .help-modal-content {
        width: 95vw;
        max-width: none;
        margin: 10px;
        max-height: 95vh;
    }

    .help-modal-header {
        padding: 15px 20px;
    }

    .help-modal-header h2 {
        font-size: 18px;
    }

    .help-modal-body {
        padding: 20px 15px;
        max-height: calc(95vh - 100px);
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .help-section h3 {
        font-size: 16px;
    }
    
    .help-section p, .help-section li {
        font-size: 14px;
    }
    
    .feature-card h4 {
        font-size: 14px;
    }
    
    .feature-card p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .help-button {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .help-modal-content {
        width: 98vw;
        margin: 5px;
        max-height: 98vh;
    }
    
    .help-modal-header {
        padding: 12px 15px;
    }
    
    .help-modal-header h2 {
        font-size: 16px;
    }
    
    .help-modal-body {
        padding: 15px 12px;
        max-height: calc(98vh - 80px);
    }
}

/* Smooth scrollbar */
.help-modal-body::-webkit-scrollbar {
    width: 6px;
}

.help-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.help-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.help-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
