/* help-styles.css - Comprehensive Help System Styles */

/* Help Search */
.help-search-container {
    margin: 15px 0;
}

.help-search {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 14px;
}

.help-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.help-search:focus {
    outline: none;
    border-color: var(--primary, #667eea);
    background: rgba(255, 255, 255, 0.15);
}

/* Help Topics Scrollable */
.help-topics {
    overflow-y: auto;
    max-height: calc(100vh - 250px);
    padding-right: 5px;
}

.help-topics::-webkit-scrollbar {
    width: 8px;
}

.help-topics::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.help-topics::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.help-topics::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Help Content Styles */
.help-content {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 30px;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
}

.help-section h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.help-section h3 {
    color: #fbbf24;
    font-size: 20px;
    margin: 25px 0 15px 0;
}

.help-section h4 {
    color: #60a5fa;
    font-size: 16px;
    margin: 20px 0 10px 0;
}

.help-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 10px 0;
}

.help-section ul, .help-section ol {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0;
    padding-left: 25px;
}

.help-section li {
    margin: 8px 0;
    line-height: 1.5;
}

.help-section b {
    color: #fbbf24;
    font-weight: 600;
}

/* Help Tables */
.help-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.help-table th {
    background: rgba(102, 126, 234, 0.3);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.help-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.help-table tr:last-child td {
    border-bottom: none;
}

.help-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Special Content Boxes */
.help-tip {
    background: rgba(102, 126, 234, 0.2);
    border-left: 4px solid #667eea;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.help-warning {
    background: rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.help-example {
    background: rgba(34, 197, 94, 0.2);
    border-left: 4px solid #22c55e;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.help-formula {
    background: rgba(168, 85, 247, 0.2);
    border-left: 4px solid #a855f7;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

/* Comparison Boxes */
.help-comparison {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.help-comparison > div {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.help-comparison h4 {
    margin-top: 0;
}

/* Search Results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-result:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(5px);
}

.search-result h3 {
    margin: 0 0 8px 0;
    color: #fbbf24;
    font-size: 18px;
}

.search-result p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Spoiler/Details */
.help-spoiler details {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
}

.help-spoiler summary {
    cursor: pointer;
    color: #fbbf24;
    font-weight: 600;
}

.help-spoiler summary:hover {
    color: #fde047;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .help-container {
        flex-direction: column;
    }
    
    .help-sidebar {
        width: 100%;
        max-height: 200px;
    }
    
    .help-topics {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .help-topic {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .help-content {
        padding: 20px;
    }
    
    .help-comparison {
        flex-direction: column;
    }
    
    .help-table {
        font-size: 12px;
    }
    
    .help-table th, .help-table td {
        padding: 8px;
    }
}

/* Scrollbar Styling for Help Content */
.help-content::-webkit-scrollbar {
    width: 10px;
}

.help-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.help-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.help-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Code Blocks */
.help-section code {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #fbbf24;
}

/* Links in Help */
.help-section a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px dotted #60a5fa;
}

.help-section a:hover {
    color: #93bbfc;
    border-bottom-style: solid;
}