/* ========================================
   SENTINELPAY HELP CENTER — CATEGORY PAGE CSS
   Extends style.css for article list views
   ======================================== */

/* --- SEARCH BAR ABOVE BREADCRUMB --- */
.cat-search-wrapper {
    padding-top: 5.5rem;
    margin-bottom: 3.5rem;
}

.cat-search-wrapper .search-container {
    max-width: 100%;
    margin: 0;
    animation: none;
}

/* --- BREADCRUMB --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0;
    margin-bottom: 3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: lowercase;
    transition: color 0.2s ease;
}

.breadcrumb-link svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.breadcrumb-link:hover {
    color: var(--neon-blue);
}

.breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.3;
}

.breadcrumb-current {
    color: var(--text-main);
    text-transform: lowercase;
    opacity: 0.7;
}

/* --- CATEGORY HEADER --- */
.cat-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-glass);
    animation: fadeIn 0.5s ease-out;
}

.cat-icon-wrapper {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.1));
    margin-top: 4px; /* optical alignment with title */
}

.cat-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.cat-header-text {
    flex: 1;
    padding-top: 0.25rem;
}

.cat-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-transform: lowercase;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.cat-desc {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: lowercase;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Author + article count (CSGOEmpire style) */
.cat-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.cat-authors {
    display: flex;
    align-items: center;
}

.cat-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.2);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.cat-meta-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: lowercase;
    letter-spacing: 0.2px;
}

.cat-meta-text strong {
    color: var(--text-main);
    font-weight: 700;
}

/* --- ARTICLE LIST --- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: fadeIn 0.6s ease-out;
}

.article-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: rgba(10, 12, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Round only first and last rows */
.article-row:first-child {
    border-radius: 10px 10px 0 0;
}

.article-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 0 10px 10px;
}

.article-row:only-child {
    border-radius: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Left neon accent line on hover */
.article-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--neon-blue);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 2px 0 0 2px;
}

.article-row:hover {
    background: rgba(0, 240, 255, 0.03);
    border-color: rgba(0, 240, 255, 0.12);
    padding-left: 2.25rem;
}

.article-row:hover::before {
    opacity: 1;
}

/* Also affect border of adjacent row */
.article-row:hover + .article-row {
    border-top-color: rgba(0, 240, 255, 0.08);
}

.article-row-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.article-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    text-transform: lowercase;
    letter-spacing: -0.3px;
    transition: color 0.2s ease;
}

.article-row:hover .article-title {
    color: var(--neon-blue);
}

.article-excerpt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: lowercase;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted);
    opacity: 0.3;
    transition: all 0.2s ease;
}

.article-row:hover .article-arrow {
    color: var(--neon-blue);
    opacity: 1;
    transform: translateX(2px);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .cat-search-wrapper { padding-top: 4.5rem; }
    .cat-header { flex-direction: column; gap: 1rem; }
    .cat-icon-wrapper { margin-top: 0; }
    .cat-title { font-size: 1.5rem; }
    .article-row { padding: 1.25rem; }
    .article-row:hover { padding-left: 1.75rem; }
    .article-excerpt { white-space: normal; }
}
