/* Help Center Styles */
.help-container {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.help-hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
    position: relative;
    overflow: hidden;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    opacity: 0.1;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.search-box i {
    color: var(--dark-muted);
    margin: 0 1rem;
    font-size: 1.2rem;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--dark-text);
    font-size: 1.1rem;
    padding: 1rem 0;
}

.search-box input::placeholder {
    color: var(--dark-muted);
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
}

.categories-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: rgba(67, 97, 238, 0.05);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-card h5 {
    color: var(--dark-text);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--dark-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.category-count {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popular-articles {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.article-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-card h5 {
    margin-bottom: 0.75rem;
}

.article-card h5 a {
    color: var(--dark-text);
    text-decoration: none;
}

.article-card h5 a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--dark-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--dark-muted);
    font-size: 0.85rem;
}

.article-meta i {
    width: 15px;
    text-align: center;
}

.category-section {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.articles-list {
    max-width: 800px;
}

.article-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.article-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary-color);
}

.article-title {
    flex: 1;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 1.5rem;
}

.article-title:hover {
    color: var(--primary-color);
}

.article-desc {
    flex: 2;
    color: var(--dark-muted);
    font-size: 0.95rem;
    margin-right: 1.5rem;
}

.article-difficulty {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-difficulty.easy {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.article-difficulty.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.article-difficulty.advanced {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.support-options {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
    border-radius: 30px;
    margin: 3rem auto;
    max-width: 1200px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.option-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.option-card h5 {
    color: white;
    margin-bottom: 1rem;
}

.option-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.option-card .btn {
    padding: 0.5rem 2rem;
    border-radius: 10px;
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: var(--dark-card);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.live-chat-widget.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: rgba(67, 97, 238, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.agent-info h6 {
    margin: 0;
    font-weight: 600;
}

.agent-info small {
    font-size: 0.85rem;
}

.agent-info .text-success i {
    font-size: 0.5rem;
    margin-right: 0.25rem;
    animation: pulse 2s infinite;
}

.btn-close-chat {
    background: transparent;
    border: none;
    color: var(--dark-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-close-chat:hover {
    color: var(--primary-color);
}

.chat-body {
    height: 300px;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 80%;
    padding: 1rem;
    border-radius: 15px;
    position: relative;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-text);
    border-bottom-left-radius: 5px;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--dark-text);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input button {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Light Mode Styles */
.light-mode .help-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.light-mode .help-hero {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
}

.light-mode .search-box {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .search-box input {
    color: var(--light-text);
}

.light-mode .search-box input::placeholder {
    color: var(--light-muted);
}

.light-mode .category-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .category-card:hover {
    background: rgba(67, 97, 238, 0.05);
}

.light-mode .category-card h5 {
    color: var(--light-text);
}

.light-mode .category-card p {
    color: var(--light-muted);
}

.light-mode .article-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .article-card h5 a {
    color: var(--light-text);
}

.light-mode .article-card h5 a:hover {
    color: var(--primary-color);
}

.light-mode .article-excerpt {
    color: var(--light-muted);
}

.light-mode .article-meta {
    color: var(--light-muted);
}

.light-mode .article-item {
    background: rgba(0, 0, 0, 0.02);
}

.light-mode .article-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .article-title {
    color: var(--light-text);
}

.light-mode .article-desc {
    color: var(--light-muted);
}

.light-mode .support-options {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
}

.light-mode .option-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .option-card h5 {
    color: var(--light-text);
}

.light-mode .option-card p {
    color: var(--light-muted);
}

.light-mode .live-chat-widget {
    background: var(--light-card);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .chat-header {
    background: rgba(67, 97, 238, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .chat-message.bot {
    background: rgba(0, 0, 0, 0.05);
    color: var(--light-text);
}

.light-mode .chat-input {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .chat-input input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--light-text);
}

/* Responsive */
@media (max-width: 768px) {
    .help-hero {
        padding: 4rem 0;
    }
    
    .search-box {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .search-box > div {
        display: flex;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .search-box button {
        width: 100%;
        padding: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .live-chat-widget {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 576px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}
