/* Support - Announcements & Knowledge Base - Modern Professional Design */

/* ========================================
   ANNOUNCEMENTS
   ======================================== */

/* Announcement List */
.announcement {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    border-left: 4px solid #67a552;
    transition: all 0.2s ease;
    position: relative;
}

.announcement:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Resolved Announcement */
.announcement-resolved {
    border-left-color: #3b82f6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.03) 0%, #ffffff 100%);
}

.announcement-resolved:before {
    content: '\f00c\00a0\00a0RESOLVED';
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'FontAwesome', metropolisregular, -apple-system, sans-serif;
    letter-spacing: 0.5px;
}

.announcement h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.announcement h2 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.announcement h2 a:hover {
    color: #67a552;
}

.announcement p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #4b5563;
}

.announcement p strong {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.announcement p:last-child {
    margin-bottom: 0;
}

.announcement a {
    color: #67a552;
    text-decoration: none;
    font-weight: 500;
}

.announcement a:hover {
    text-decoration: underline;
}

/* Announcement Empty State */
.announcement-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.announcement-empty strong {
    font-size: 16px;
    color: #6b7280;
}

/* Divider */
.divider {
    height: 1px;
    background: #e5e7eb;
    margin: 30px 0;
}

/* RSS Feed Link */
.rss-link {
    text-align: center;
    padding: 20px 0;
}

.rss-link img {
    vertical-align: middle;
    margin-right: 8px;
}

.rss-link a {
    color: #67a552;
    text-decoration: none;
    font-weight: 500;
}

.rss-link a:hover {
    text-decoration: underline;
}

/* Announcement View */
.announcement-view {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    margin-bottom: 30px;
    position: relative;
}

/* Resolved Announcement View */
.announcement-view-resolved {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.03) 0%, #ffffff 100%);
}

.announcement-view-resolved .announcement-view-title:before {
    content: '\f00c';
    font-family: 'FontAwesome';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 6px;
    font-size: 16px;
    margin-right: 12px;
}

.announcement-view-resolved .announcement-view-meta:after {
    content: 'RESOLVED';
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 16px;
}

.announcement-view-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.announcement-view-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.announcement-view-meta i {
    color: #67a552;
}

.announcement-view-content {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
}

.announcement-view-content h2,
.announcement-view-content h3,
.announcement-view-content h4 {
    color: #1f2937;
    margin: 24px 0 12px 0;
}

.announcement-view-content h2 {
    font-size: 22px;
}

.announcement-view-content h3 {
    font-size: 18px;
}

.announcement-view-content h4 {
    font-size: 16px;
}

.announcement-view-content p {
    margin: 0 0 16px 0;
}

.announcement-view-content ul,
.announcement-view-content ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.announcement-view-content li {
    margin-bottom: 8px;
}

.announcement-view-content a {
    color: #67a552;
    text-decoration: none;
}

.announcement-view-content a:hover {
    text-decoration: underline;
}

.announcement-view-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: #dc2626;
}

.announcement-view-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0 0 16px 0;
}

.announcement-view-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.announcement-social {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
}

.announcement-view-back {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.announcement-view-back .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   KNOWLEDGE BASE
   ======================================== */

/* KB Search */
.kb-search {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 40px 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
}

.kb-search form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.kb-search .kb-search-input {
    flex: 1;
}

.kb-search input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
}

.kb-search input[type="text"]:focus {
    outline: none;
    border-color: #67a552;
    box-shadow: 0 0 0 3px rgba(103, 165, 82, 0.1);
}

.kb-search .kb-search-button {
    flex: 0 0 auto;
}

.kb-search input[type="submit"] {
    padding: 14px 32px;
    font-size: 16px;
    white-space: nowrap;
}

/* KB Breadcrumb */
.kb-breadcrumb {
    margin-bottom: 20px;
    padding: 20px;
    font-size: 14px;
    color: #6b7280;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}

.kb-breadcrumb a {
    color: #67a552;
    text-decoration: none;
}

.kb-breadcrumb a:hover {
    text-decoration: underline;
}

/* KB Categories Grid */
.kb-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kb-category {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.kb-category:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #67a552;
    transition: width 0.2s ease;
    pointer-events: none;
}

.kb-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #67a552;
}

.kb-category:hover:before {
    width: 100%;
    opacity: 0.05;
}

.kb-category-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.kb-category-icon {
    font-size: 24px;
    color: #67a552;
    flex-shrink: 0;
}

.kb-category-title {
    flex: 1;
}

.kb-category-title a {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kb-category-title a:hover {
    color: #67a552;
}

.kb-category-count {
    font-size: 14px;
    color: #6b7280;
    margin-left: 6px;
}

.kb-category-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* KB Articles List */
.kb-articles {
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    border: 1px solid #f3f4f6;
    margin-bottom: 30px;
}

.kb-article-item {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
}

.kb-article-item:last-child {
    border-bottom: none;
}

.kb-article-item:hover {
    background: #f9fafb;
}

.kb-article-item a {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.kb-article-item a:before {
    content: '\f15c';
    font-family: 'FontAwesome';
    color: #67a552;
    font-size: 14px;
}

.kb-article-item a:hover {
    color: #67a552;
}

.kb-article-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 8px 0 0 0;
}

/* KB Article View */
.kb-article {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    margin-bottom: 30px;
}

.kb-article-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 24px 0;
    line-height: 1.3;
}

.kb-article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
}

.kb-article-content h2,
.kb-article-content h3,
.kb-article-content h4 {
    color: #1f2937;
    margin: 24px 0 12px 0;
}

.kb-article-content h2 {
    font-size: 22px;
}

.kb-article-content h3 {
    font-size: 18px;
}

.kb-article-content h4 {
    font-size: 16px;
}

.kb-article-content p {
    margin: 0 0 16px 0;
}

.kb-article-content ul,
.kb-article-content ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.kb-article-content li {
    margin-bottom: 8px;
}

.kb-article-content a {
    color: #67a552;
    text-decoration: none;
}

.kb-article-content a:hover {
    text-decoration: underline;
}

.kb-article-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: #dc2626;
}

.kb-article-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0 0 16px 0;
}

.kb-article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* KB Article Actions */
.kb-article-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.kb-article-actions form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kb-article-actions form strong {
    white-space: nowrap;
}

.kb-article-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.kb-article-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.kb-article-link:hover {
    color: #67a552;
}

.kb-article-link i {
    font-size: 14px;
}

/* KB Article Rating */
.kb-article-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 6px;
    margin-top: 20px;
}

.kb-article-rating strong {
    font-size: 14px;
    color: #1f2937;
}

.kb-article-rating select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.kb-article-rating-result {
    font-size: 14px;
    color: #6b7280;
}

/* KB Related Articles */
.kb-related {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #f3f4f6;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
}

.kb-related h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.kb-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kb-related li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.kb-related li:last-child {
    border-bottom: none;
}

.kb-related li a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.kb-related li a:hover {
    color: #67a552;
}

.kb-related .kb-views {
    font-size: 13px;
    color: #6b7280;
    margin-left: 8px;
}

/* KB Empty State */
.kb-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.kb-empty p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    .kb-categories {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .kb-article {
        padding: 30px 24px;
    }

    .kb-article-title {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .announcement {
        padding: 20px;
    }

    .announcement-resolved:before {
        position: static;
        display: block;
        margin-bottom: 12px;
        width: fit-content;
    }

    .kb-search {
        padding: 30px 20px;
    }

    .kb-search form {
        flex-direction: column;
    }

    .kb-search input[type="submit"] {
        width: 100%;
    }

    .kb-categories {
        grid-template-columns: 1fr;
    }

    .kb-article {
        padding: 24px 20px;
    }

    .kb-article-title {
        font-size: 22px;
    }

    .announcement-view {
        padding: 24px 20px;
    }

    .announcement-view-title {
        font-size: 22px;
    }

    .announcement-view-resolved .announcement-view-title:before {
        width: 28px;
        height: 28px;
        font-size: 14px;
        margin-right: 8px;
    }

    .announcement-view-resolved .announcement-view-meta:after {
        display: block;
        margin-top: 8px;
        margin-left: 0;
        width: fit-content;
    }

    .kb-article-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-pagination {
        flex-direction: column;
    }

    .support-pagination-prev,
    .support-pagination-next {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .announcement,
    .kb-article,
    .kb-category,
    .kb-related {
        box-shadow: none;
        border: 1px solid #000;
    }

    .kb-search,
    .kb-article-actions,
    .kb-article-rating,
    .support-pagination,
    .rss-link {
        display: none;
    }
}
