/* Shared by the Support hub page, single support-article pages
   (single-support.php), and the support-category archive
   (taxonomy-help-categories.php). Consolidated from what used to be three
   near-identical copies of the same base rules. */

.mid-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: sans-serif;
}

.breadcrumbs {
    margin-bottom: 30px;
    padding: 0;
}

.breadcrumbs a {
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline !important;
}

.help-content {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .mid-container {
        padding: 20px 10px;
    }
}

/* single-support.php - individual article */

.help-header {
    margin-bottom: 30px;
}

.help-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2;
}

.help-answer {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 40px;
}

.help-answer h2,
.help-answer h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.help-answer h2 {
    font-size: 1.5rem;
}

.help-answer h3 {
    font-size: 1.3rem;
}

.help-answer p {
    margin-bottom: 20px;
}

.help-answer ul,
.help-answer ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.help-answer li {
    margin-bottom: 10px;
}

.help-answer code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

.help-answer pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.help-answer img {
    border: 1px solid #ccc;
    max-height: 400px;
}

ul.steps {
    list-style-type: decimal;
}

ul.steps li::marker {
    font-weight: 600;
}

@media (max-width: 768px) {
    .help-header h1 {
        font-size: 1.5rem;
    }

    .help-answer {
        font-size: 1rem;
    }

    .help-answer h2 {
        font-size: 1.3rem;
    }

    .help-answer h3 {
        font-size: 1.2rem;
    }
}

/* taxonomy-help-categories.php - category archive listing */

.category-header {
    margin-bottom: 30px;
}

.category-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.2;
}

.category-header p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.question-count {
    font-size: 0.95rem;
}

.help-posts-container {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.help-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.posts-bullet-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.help-post-list {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.help-post-item {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
}

.help-post-item:last-child {
    border-bottom: none;
}

.help-post-item:hover {
    background: #eee;
    border-radius: 10px;
}

.help-post-item:hover h2 {
    color: #4472c4;
}

.help-post-item h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-post-item .post-excerpt {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.no-posts {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.no-posts p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.back-to-help {
    display: inline-block;
    color: #4472c4;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 2px solid #4472c4;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.back-to-help:hover {
    background: #4472c4;
    color: white;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .category-header h1 {
        font-size: 1.5rem;
    }

    .help-post-item h2 {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 5px;
    }
}

/* page-support.php - the hub page */

.page-header {
    text-align: center;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 1rem auto 0rem;
    max-width: 600px;
}

.help-hero {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.help-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.help-hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.search-container {
    position: relative;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-content: center;
    align-items: center;
    transition: border-color 0.3s ease;
}

.search-container:hover,
.search-container:focus-within {
    border-color: #4472c4;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #666;
}

#help-search-input {
    width: 100%;
    padding: 10px 60px 10px 0px;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result {
    padding: 20px 10px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.search-result:hover {
    background-color: #f8f9fa;
}

.search-result:first-child {
    border-radius: 10px 10px 0 0;
}

.search-result:last-child {
    border-bottom: none;
    border-radius: 0 0 16px 16px;
}

.search-result p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
    color: black;
}

.support-topics h2,
.contact-us h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
}

.section-subtitle {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 auto;
}

.topic-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-card:hover {
    border-color: #4472C4;
}

.topic-content {
    flex: 1;
}

.topic-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.article-count {
    color: #6c757d;
    font-size: 0.95rem;
}

.topic-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-left: 16px;
    flex-shrink: 0;
}

.contact-us {
    display: flex;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 20px 10px;
    border-radius: 10px;
    margin: 20px 0px;
    background: white;
    font-size: 1.3rem;
}

.fa-phone,
.fa-envelope {
    margin-right: 10px;
    color: #4472c4;
    padding: 10px;
    border-radius: 50%;
    border: 1px solid;
}

.contact a {
    background: #4472c4;
    padding: 10px 20px;
    border: 1px solid;
    color: white;
    border-radius: 4px;
}

.contact a:hover {
    background: #2c559d;
}

@media (max-width: 768px) {
    .support-topics h2,
    .contact-us h2 {
        font-size: 1.5rem;
    }

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

    .topic-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-left: 12px;
    }

    .hero-icons {
        gap: 15px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .topic-content h3 {
        font-size: 1.1rem;
    }

    .help-hero h1 {
        font-size: 2.5rem;
    }
}
