.forum-hero {
    background: radial-gradient(circle at 20% 20%, rgba(111, 120, 230, 0.22), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(124, 85, 164, 0.18), transparent 35%),
        linear-gradient(120deg, rgba(111, 120, 230, 0.16), rgba(124, 85, 164, 0.12));
    padding: 70px 0 60px;
}

.forum-hero-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: center;
}

.breadcrumb {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.forum-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.forum-hero p {
    color: var(--muted);
    margin-bottom: 20px;
}

.forum-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.forum-search {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 34px rgba(20, 30, 50, 0.12);
}

.search-title {
    font-weight: 700;
    margin-bottom: 12px;
}

.forum-search input {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
}

.search-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.forum-section {
    padding: 70px 0;
}

.category-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: 0 18px 38px rgba(20, 30, 50, 0.12);
    margin-bottom: 24px;
}

.category-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.steam-user {
    text-decoration: none;
    color: inherit;
}

.category-banner h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.topic-header {
    margin-bottom: 18px;
}

.topic-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 14px 28px rgba(20, 30, 50, 0.1);
    margin-bottom: 16px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(111, 120, 230, 0.25), rgba(124, 85, 164, 0.25));
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--primary-dark);
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author {
    font-weight: 700;
}

.post-content {
    color: var(--text);
    line-height: 1.6;
}

.post-date {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.form-label {
    display: block;
    font-weight: 600;
    margin: 12px 0 8px;
}

.form-input {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 12px;
}

.form-input:focus {
    outline: none;
    border-color: rgba(111, 120, 230, 0.6);
    box-shadow: 0 0 0 3px rgba(111, 120, 230, 0.12);
}

.reply-section {
    margin-top: 24px;
}

.profile-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 18px 38px rgba(20, 30, 50, 0.12);
}

.profile-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(111, 120, 230, 0.25), rgba(124, 85, 164, 0.25));
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--primary-dark);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
}

.profile-rank {
    color: var(--muted);
    margin-top: 4px;
}

.profile-id {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.profile-stats .stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.profile-section {
    margin-top: 22px;
}

.profile-section h3 {
    margin-bottom: 14px;
}

@media (max-width: 960px) {
    .profile-header {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

.forum-section-alt {
    background: var(--surface);
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-header.left {
    text-align: left;
    margin-bottom: 20px;
}

.category-list {
    display: grid;
    gap: 18px;
}

.category {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    box-shadow: 0 18px 38px rgba(20, 30, 50, 0.12);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(111, 120, 230, 0.12), rgba(124, 85, 164, 0.12));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category:hover {
    transform: translateY(-3px);
    border-color: rgba(111, 120, 230, 0.4);
    box-shadow: 0 24px 50px rgba(20, 30, 50, 0.18);
}

.category:hover::before {
    opacity: 1;
}

.category > * {
    position: relative;
    z-index: 1;
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(111, 120, 230, 0.25), rgba(124, 85, 164, 0.25));
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--primary-dark);
    box-shadow: inset 0 0 0 1px rgba(111, 120, 230, 0.25), 0 10px 20px rgba(20, 30, 50, 0.12);
}

.category-icon i {
    font-size: 18px;
}

.category-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 18px;
}

.category-desc {
    color: var(--muted);
    font-size: 14px;
}

.category-meta {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.category-stats {
    display: grid;
    gap: 8px;
    text-align: right;
}

.category-stats div {
    display: grid;
}

.category-stats strong {
    font-size: 16px;
}

.category-stats span {
    font-size: 12px;
    color: var(--muted);
}

.category-error {
    color: var(--text);
    font-weight: 600;
    text-align: center;
}

.forum-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.topic-list {
    display: grid;
    gap: 14px;
}

.topic {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 12px 24px rgba(20, 30, 50, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic:hover {
    transform: translateY(-2px);
    border-color: rgba(111, 120, 230, 0.4);
    box-shadow: 0 18px 32px rgba(20, 30, 50, 0.12);
}

.topic-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.topic-meta {
    font-size: 12px;
    color: var(--muted);
}

.forum-side {
    display: grid;
    gap: 18px;
}

.side-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 16px 34px rgba(20, 30, 50, 0.12);
}

.side-stats {
    display: grid;
    gap: 10px;
}

.side-stats div {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted);
}

.side-stats strong {
    color: var(--text);
}

.side-links {
    display: grid;
    gap: 8px;
}

.side-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
}

@media (max-width: 960px) {
    .forum-grid-layout {
        grid-template-columns: 1fr;
    }

    .category {
        grid-template-columns: auto 1fr;
    }

    .category-stats {
        text-align: left;
    }

    .category-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
