/* Help Page Styles */

/* Page Header */
.help-page-header {
    margin-bottom: 24px;
}

.help-header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.help-page-title svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.help-page-subtitle {
    color: var(--gray-500);
    font-size: 15px;
    margin: 0;
}

/* Search & Filter Controls */
.help-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.help-search-wrapper {
    position: relative;
    max-width: 400px;
}

.help-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    pointer-events: none;
}

.help-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.help-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.help-search-input::placeholder {
    color: var(--gray-400);
}

/* Category Buttons */
.help-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.help-category-btn {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background-color: #fff;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-category-btn:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.help-category-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Glossary Grid */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* Glossary Card */
.help-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.help-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
    transform: translateY(-2px);
}

/* Card Header */
.help-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.help-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.help-card-icon.calls {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.2) 100%);
}

.help-card-icon.sales {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%);
}

.help-card-icon.productivity {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.help-card-icon.config {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(107, 114, 128, 0.2) 100%);
}

.help-card-titles {
    flex: 1;
    min-width: 0;
}

.help-term {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.help-translation {
    font-size: 13px;
    color: var(--gray-500);
    font-style: italic;
    margin: 0;
}

/* Category Badge */
.help-category-badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 20px;
    flex-shrink: 0;
}

.help-category-badge.calls {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.help-category-badge.sales {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.help-category-badge.productivity {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.help-category-badge.config {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6B7280;
}

/* Card Body */
.help-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Description */
.help-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0;
}

/* Formula Box */
.help-formula-box {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px;
}

.help-formula-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.help-formula {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--primary-dark);
    background-color: rgba(79, 70, 229, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 0;
    word-break: break-word;
}

/* Empty State */
.help-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--gray-400);
}

.help-empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.help-empty-state p {
    font-size: 15px;
    margin: 0;
}

/* Animations */
.help-card {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.help-card:nth-child(1) { animation-delay: 0.05s; }
.help-card:nth-child(2) { animation-delay: 0.1s; }
.help-card:nth-child(3) { animation-delay: 0.15s; }
.help-card:nth-child(4) { animation-delay: 0.2s; }
.help-card:nth-child(5) { animation-delay: 0.25s; }
.help-card:nth-child(6) { animation-delay: 0.3s; }
.help-card:nth-child(7) { animation-delay: 0.35s; }
.help-card:nth-child(8) { animation-delay: 0.4s; }
.help-card:nth-child(9) { animation-delay: 0.45s; }
.help-card:nth-child(10) { animation-delay: 0.5s; }

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

/* Responsive adjustments handled in responsive.css */
