/* Support Container */
.support-container {
    min-height: calc(100vh - 60px);
    margin-top: 60px;
    background: var(--background-secondary);
}

/* Home View */
.support-home {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

/* Hero Section */
.support-hero {
    text-align: center;
    margin-bottom: 40px;
}

.support-hero-image {
    max-width: 600px;
    margin: 0 auto;
}

.devices-illustration {
    width: 100%;
    height: auto;
    display: block;
}

.support-header {
    text-align: center;
    margin-bottom: 40px;
}

.support-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.support-header p {
    font-size: 20px;
    color: var(--text-secondary);
}

/* Home Search */
.home-search-container {
    margin-bottom: 48px;
}

.home-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-large {
    padding: 16px 24px;
    font-size: 17px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-input-large:focus {
    box-shadow: 0 0 0 3px rgba(95, 164, 95, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Categories Container */
.categories-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    overflow: hidden;
}

/* Category Accordion */
.category-accordion {
    border-bottom: 1px solid var(--border-color);
}

.category-accordion:last-child {
    border-bottom: none;
}

.category-header {
    padding: 24px 32px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    user-select: none;
}

.category-header:hover {
    background: var(--background-secondary);
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-count {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 12px;
}

.category-icon {
    font-size: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.category-accordion.active .category-icon {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-accordion.active .category-content {
    max-height: 2000px;
}

.category-articles {
    padding: 0 32px 24px;
}

.article-item {
    display: block;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.article-item:hover {
    background: var(--background-secondary);
    border-color: var(--border-color);
}

.article-item-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.article-item-description {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Article View */
.article-view {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.article-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: var(--transition);
}

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

.article-search {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

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

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 10;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--background-secondary);
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.search-result-description {
    font-size: 12px;
    color: var(--text-secondary);
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.article-content {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
}

/* Article Styling */
.article-content h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 16px;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-content p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

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

.article-content code {
    background: var(--background-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

.article-content pre {
    background: var(--background-secondary);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* Loading & Error States */
.loading,
.error {
    text-align: center;
    padding: 80px 40px;
}

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

.error h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.error p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .support-home {
        padding: 40px 32px 60px;
    }

    .support-hero-image {
        max-width: 500px;
    }

    .support-header h1 {
        font-size: 40px;
    }

    .home-search {
        max-width: 100%;
    }

    .article-view {
        padding: 32px 24px;
    }

    .article-content {
        padding: 32px 24px;
    }

    .article-content h1 {
        font-size: 32px;
    }

    .article-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .support-home {
        padding: 24px 20px 40px;
    }

    .support-hero {
        margin-bottom: 32px;
    }

    .support-hero-image {
        max-width: 100%;
    }

    .support-header {
        margin-bottom: 32px;
    }

    .support-header h1 {
        font-size: 32px;
    }

    .support-header p {
        font-size: 18px;
    }

    .home-search-container {
        margin-bottom: 32px;
    }

    .search-input-large {
        padding: 14px 20px;
        font-size: 16px;
    }

    .category-header {
        padding: 20px 20px;
    }

    .category-title {
        font-size: 18px;
    }

    .category-articles {
        padding: 0 20px 20px;
    }

    .article-item {
        padding: 12px;
    }

    .article-view {
        padding: 24px 20px;
    }

    .article-content {
        padding: 24px 20px;
    }

    .article-content h1 {
        font-size: 28px;
    }

    .article-content h2 {
        font-size: 24px;
        margin-top: 32px;
    }

    .article-content h3 {
        font-size: 20px;
        margin-top: 24px;
    }
}
