/**
* Punesim.com - Help Center Styles
*/

/* Base Variables */
:root {
    /* Mobile Variables */
    --mobile-padding: 16px;
    --mobile-font-size: 12px;
    --mobile-line-height: 1.5;
    --mobile-touch-target: 44px;
    --mobile-section-padding: 24px;
    --mobile-card-padding: 16px;
    --mobile-icon-size: 40px;

    /* Desktop Variables */
    --desktop-padding: 24px;
    --desktop-font-size: 14px;
    --desktop-line-height: 1.6;
    --desktop-section-padding: 40px;
    --desktop-card-padding: 30px;
    --desktop-icon-size: 50px;
}

/* Help Center Hero */
.help-center-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--mobile-section-padding) var(--mobile-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.help-center-hero-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.help-center-hero-content p {
    font-size: var(--mobile-font-size);
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: var(--mobile-line-height);
    position: relative;
    z-index: 1;
}

.help-search-container {
    max-width: 700px;
    margin: 0 auto;
}

.help-search-box {
    display: flex;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
}

.help-search-box input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: var(--mobile-font-size);
    line-height: var(--mobile-line-height);
    min-height: var(--mobile-touch-target);
}

.help-search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.help-search-box button {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: var(--mobile-touch-target);
    min-height: var(--mobile-touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-search-box button:hover {
    background-color: var(--gray-light);
}

.popular-searches {
    margin-top: 12px;
    font-size: var(--mobile-font-size);
}

.popular-searches span {
    margin-right: 8px;
    opacity: 0.8;
}

.popular-searches a {
    color: var(--white);
    text-decoration: none;
    margin: 0 4px;
    padding: 4px 12px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
    display: inline-block;
    min-height: var(--mobile-touch-target);
    line-height: var(--mobile-touch-target);
}

/* Help Center Main Content */
.help-center-main {
    padding: var(--mobile-section-padding) var(--mobile-padding);
    background-color: var(--white);
}

.help-center-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar */
.help-sidebar {
    width: 100%;
}

.help-categories {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: var(--mobile-card-padding);
    margin-bottom: 24px;
}

.help-categories h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray);
    color: var(--text-color);
    line-height: 1.3;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li a {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    min-height: var(--mobile-touch-target);
    line-height: var(--mobile-line-height);
}

.category-list li a:hover {
    background-color: var(--primary-very-light);
    color: var(--primary-color);
}

.category-list li.active a {
    background-color: var(--primary-color);
    color: var(--white);
}

.help-contact {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: var(--mobile-card-padding);
    text-align: center;
}

.help-contact h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.3;
}

.help-contact p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: var(--mobile-font-size);
    line-height: var(--mobile-line-height);
}

.btn-block {
    display: block;
    width: 100%;
    min-height: var(--mobile-touch-target);
    line-height: var(--mobile-touch-target);
}

/* Main Content Area */
.help-main {
    width: 100%;
}

/* Featured Articles */
.featured-articles {
    margin-bottom: 32px;
}

.featured-articles h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.3;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.article-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: var(--mobile-card-padding);
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-icon {
    width: var(--mobile-icon-size);
    height: var(--mobile-icon-size);
    background-color: var(--primary-very-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    font-size: var(--mobile-font-size);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: var(--mobile-line-height);
}

.article-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content p {
    color: var(--text-light);
    font-size: var(--mobile-font-size);
    line-height: var(--mobile-line-height);
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    html {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
    }

    body {
        overflow-x: hidden;
        position: relative;
    }

    /* Touch-friendly adjustments */
    .category-list li a,
    .article-card,
    .help-search-box button {
        touch-action: manipulation;
    }

    /* Performance optimizations */
    .article-card,
    .help-categories {
        will-change: transform;
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    /* Accessibility improvements */
    .category-list li a:focus,
    .article-card:focus,
    .help-search-box button:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    /* Text overflow prevention */
    .article-content h3,
    .article-content p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Desktop Optimizations */
@media (min-width: 768px) {
    .help-center-hero {
        padding: var(--desktop-section-padding) var(--desktop-padding);
    }

    .help-center-hero-content h1 {
        font-size: 36px;
    }

    .help-center-hero-content p {
        font-size: var(--desktop-font-size);
    }

    .help-search-box input {
        padding: 15px 20px;
        font-size: var(--desktop-font-size);
    }

    .help-center-main {
        padding: var(--desktop-section-padding) var(--desktop-padding);
    }

    .help-center-content {
        flex-direction: row;
        gap: 40px;
    }

    .help-sidebar {
        width: 280px;
        flex-shrink: 0;
    }

    .help-categories {
        padding: var(--desktop-card-padding);
    }

    .help-categories h3 {
        font-size: 20px;
    }

    .category-list li a {
        font-size: var(--desktop-font-size);
    }

    .help-contact {
        padding: var(--desktop-card-padding);
    }

    .help-contact h3 {
        font-size: 20px;
    }

    .help-contact p {
        font-size: var(--desktop-font-size);
    }

    .featured-articles h2 {
        font-size: 24px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .article-card {
        padding: var(--desktop-card-padding);
    }

    .article-icon {
        width: var(--desktop-icon-size);
        height: var(--desktop-icon-size);
        font-size: 20px;
    }

    .article-content h3 {
        font-size: var(--desktop-font-size);
    }

    .article-content p {
        font-size: var(--desktop-font-size);
    }
}

/* Help Category Sections */
.help-category-section {
    margin-bottom: 50px;
}

.help-category-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Article Detail View */
.article-detail {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.article-navigation {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-dark);
}

.article-detail-content {
    margin-bottom: 30px;
}

.article-detail-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.article-detail-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-detail-content ul,
.article-detail-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-light);
}

.article-detail-content li {
    margin-bottom: 10px;
}

.article-detail-content img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.article-detail-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.article-detail-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px;
    color: var(--text-color);
}

.article-detail-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-detail-content a:hover {
    text-decoration: underline;
}

.article-detail-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
}

.article-detail-content code {
    background-color: var(--gray-light);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.article-detail-content pre {
    background-color: var(--gray-light);
    padding: 15px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 20px 0;
}

.article-detail-content pre code {
    background-color: transparent;
    padding: 0;
}

.article-feedback {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
}

.article-feedback h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feedback-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.feedback-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    min-height: 100px;
}

.related-articles h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 10px;
}

.related-articles li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.related-articles li a:hover {
    background-color: var(--primary-very-light);
}

.related-articles li a i {
    font-size: 14px;
}

/* Search Results */
.search-results {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.search-header {
    margin-bottom: 25px;
}

.search-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.search-header p {
    color: var(--text-light);
}

.search-header p span {
    font-weight: 600;
    color: var(--primary-color);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.result-category {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-block;
    padding: 3px 8px;
    background-color: var(--primary-very-light);
    border-radius: 12px;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.result-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: var(--primary-color);
}

.result-excerpt {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.result-excerpt .highlight {
    background-color: rgba(var(--primary), 0.2);
    padding: 0 2px;
    border-radius: 3px;
}

.no-results {
    text-align: center;
    padding: 40px 0;
}

.no-results-icon {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-results p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 20px;
}

/* Community Support Section */
.community-support-section {
    padding: 60px 0;
    background-color: var(--gray-light);
}

@media screen and (max-width: 768px) {
    .community-support-section .container .community-support-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.community-support-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.community-info {
    flex: 1;
}

.community-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.community-info p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.community-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.community-image {
    flex: 1;
    max-width: 500px;
}

.community-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Support Section */
.contact-support-section {
    padding: 60px 0;
    background-color: var(--white);
}

.contact-support-content {
    text-align: center;
}

.support-text {
    max-width: 700px;
    margin: 0 auto 40px;
}

.support-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.support-text p {
    color: var(--text-light);
    font-size: 18px;
}

.support-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.support-option {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    width: 300px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.option-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-very-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.support-option h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.support-option p {
    color: var(--text-light);
    font-size: 14px;
}