/* AuroraNetworks Forum – Dark Theme */

:root {
    --an-bg: #050816;
    --an-bg-elevated: #060818;
    --an-bg-card: #0b1120;
    --an-border-subtle: rgba(30, 64, 175, 0.45);
    --an-border-soft: rgba(148, 163, 184, 0.25);
    --an-text: #e5e7eb;
    --an-text-muted: #9ca3af;
    --an-accent: #6366f1;
    --an-accent-soft: rgba(99, 102, 241, 0.14);
    --an-danger: #f97373;
    --an-radius-lg: 14px;
    --an-radius-md: 10px;
    --an-radius-pill: 999px;
    --an-shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.65);
    --an-font-size-xs: 0.75rem;
    --an-font-size-sm: 0.85rem;
    --an-font-size-md: 0.95rem;
    --an-font-size-lg: 1.05rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body.an-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #020617 100%);
    color: var(--an-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.an-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.an-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.7), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.an-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.an-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.an-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 30%;
    background: radial-gradient(circle at 30% 0%, #a855f7 0, #6366f1 40%, #22c55e 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35), 0 10px 30px rgba(79, 70, 229, 0.6);
}

.an-logo-text {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.98rem;
    text-transform: uppercase;
    color: #f9fafb;
}

.an-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 0.9rem;
}

.an-nav-link {
    padding: 0.2rem 0.1rem;
    border-radius: 4px;
    color: var(--an-text-muted);
    position: relative;
    transition: color 0.16s ease-out;
}

.an-nav-link:hover {
    color: var(--an-text);
}

.an-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.2rem;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(to right, #4f46e5, #22c55e);
    transition: transform 0.16s ease-out;
}

.an-nav-link-active {
    color: #e5e7eb;
}

.an-nav-link-active::after,
.an-nav-link:hover::after {
    transform: scaleX(1);
}

.an-main {
    padding: 1.8rem 0 2.6rem;
}

.an-hero {
    padding: 1.6rem 0 0.6rem;
}

.an-hero-text {
    max-width: 640px;
}

.an-hero-title {
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    margin: 0 0 0.7rem;
    letter-spacing: 0.02em;
}

.an-hero-subtitle {
    margin: 0;
    color: var(--an-text-muted);
    font-size: 0.95rem;
}

.an-section {
    margin-top: 1.6rem;
}

.an-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--an-font-size-xs);
    color: var(--an-text-muted);
    margin-bottom: 0.6rem;
}

.an-breadcrumb-link {
    color: var(--an-text-muted);
}

.an-breadcrumb-link:hover {
    color: var(--an-text);
}

.an-breadcrumb-current {
    color: var(--an-text);
}

.an-breadcrumb-separator {
    opacity: 0.5;
}

.an-section-header {
    margin-bottom: 1.1rem;
}

.an-section-title {
    font-size: var(--an-font-size-lg);
    margin: 0 0 0.15rem;
}

.an-section-description {
    margin: 0;
    color: var(--an-text-muted);
    font-size: 0.88rem;
}

.an-grid {
    display: grid;
    gap: 1.1rem;
}

.an-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Forum-Listen im Modern-Gaming-Stil */
.mg-forum-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mg-forum-row {
    display: grid;
    grid-template-columns: 1.7fr 1.1fr;
    gap: 1rem;
    align-items: center;
}

.mg-forum-row-main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.mg-forum-title {
    font-size: var(--an-font-size-md);
}

.mg-forum-meta {
    font-size: var(--an-font-size-xs);
    color: var(--an-text-muted);
}

.mg-forum-lastpost {
    text-align: right;
    font-size: var(--an-font-size-xs);
    color: var(--an-text-muted);
}

.mg-thread-row {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) auto;
    gap: 1rem;
    align-items: center;
}

.mg-thread-main {
    min-width: 0;
}

.mg-thread-title-line {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
}

.mg-thread-title {
    font-size: var(--an-font-size-md);
}

.mg-thread-badges {
    display: inline-flex;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.mg-thread-meta {
    margin-top: 0.1rem;
    font-size: var(--an-font-size-xs);
    color: var(--an-text-muted);
}

.mg-meta-strong {
    color: var(--an-text);
}

.mg-pill-badge {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.5);
}

.mg-thread-stats {
    display: inline-flex;
    gap: 0.6rem;
    justify-content: flex-end;
    align-items: center;
    font-size: var(--an-font-size-xs);
    color: var(--an-text-muted);
}

.mg-thread-stat {
    text-align: right;
}

.mg-thread-stat-label {
    display: block;
}

.mg-thread-stat-value {
    display: block;
    font-weight: 600;
    color: var(--an-text);
}

.an-card {
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
    border-radius: var(--an-radius-lg);
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--an-border-subtle);
    box-shadow: var(--an-shadow-soft);
}

.an-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.an-card-title {
    font-size: var(--an-font-size-md);
    margin: 0;
}

.an-card-body {
    margin: 0.15rem 0 0;
    font-size: var(--an-font-size-sm);
    color: var(--an-text-muted);
}

.an-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    border-radius: var(--an-radius-pill);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
}

.an-badge-primary {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.55);
    color: #bfdbfe;
}

.an-badge-tdm {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.55);
    color: #bbf7d0;
}

/* Rank-Farben in Anlehnung an forum_ranks.color_class */
.rank-member {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.5);
}

.rank-stammspieler {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.7);
}

.rank-veteran {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.7);
}

.rank-pro {
    background: rgba(236, 72, 153, 0.18);
    border-color: rgba(236, 72, 153, 0.7);
}

.rank-legend {
    background: rgba(234, 179, 8, 0.18);
    border-color: rgba(234, 179, 8, 0.7);
}

.rank-tdm-supporter {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.8);
}

.rank-tdm-moderator {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.8);
}

.rank-tdm-developer {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.8);
}

.rank-tdm-admin {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.8);
}

.rank-tdm-leitung {
    background: rgba(147, 51, 234, 0.18);
    border-color: rgba(147, 51, 234, 0.9);
}

.an-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    padding: 1.2rem 0;
    margin-top: 1.5rem;
}

.an-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--an-text-muted);
}

.an-footer-logo {
    font-weight: 600;
    margin-right: 0.5rem;
}

.an-footer-meta {
    opacity: 0.9;
}

/* Profilseite */
.an-profile {
    border-radius: var(--an-radius-lg);
    overflow: hidden;
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
    border: 1px solid var(--an-border-subtle);
    box-shadow: var(--an-shadow-soft);
}

.an-profile-banner {
    position: relative;
    height: 160px;
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.45), transparent),
                radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.35), transparent),
                #020617;
    background-size: cover;
    background-position: center;
}

.an-profile-avatar-wrapper {
    position: absolute;
    left: 1.7rem;
    bottom: -30px;
}

.an-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 32%;
    border: 3px solid #020617;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
    overflow: hidden;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
}

.an-profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.an-profile-avatar-initial {
    font-size: 1.6rem;
    font-weight: 600;
    color: #e5e7eb;
}

.an-profile-body {
    padding: 2.6rem 1.7rem 1.7rem;
}

.an-profile-main {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.3rem;
}

.an-profile-name {
    margin: 0;
    font-size: 1.3rem;
}

.an-profile-username {
    margin: 0.2rem 0 0;
    color: var(--an-text-muted);
    font-size: 0.9rem;
}

.an-profile-ranks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.an-profile-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.an-profile-about {
    margin-top: 1.1rem;
}

.an-text-muted {
    color: var(--an-text-muted);
}

.an-profile-tabs {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.4rem;
}

@media (max-width: 720px) {
    .an-header-inner {
        gap: 0.75rem;
    }

    .an-nav {
        gap: 0.4rem;
        font-size: 0.78rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .an-main {
        padding-top: 1.5rem;
    }

    .an-profile-body {
        padding: 2.8rem 1.1rem 1.3rem;
    }

    .an-profile-main {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Formulare & Buttons */
.an-form-group {
    margin-bottom: 0.8rem;
}

.an-form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.an-input,
.an-textarea {
    width: 100%;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #020617;
    color: var(--an-text);
    font: inherit;
}

.an-input:focus,
.an-textarea:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.7);
}

.an-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: var(--an-radius-pill);
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
    background: transparent;
    color: var(--an-text);
    transition: all 0.18s ease-out;
}

.an-btn-primary {
    background: var(--an-accent-soft);
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6);
}

.an-btn-primary:hover {
    background: rgba(79, 70, 229, 0.9);
}

.an-thread-actions {
    margin-bottom: 1rem;
}

.an-mb-md {
    margin-bottom: 1rem;
}

.an-mt-md {
    margin-top: 1rem;
}

/* Thread-Posts */
.an-thread-post {
    margin-bottom: 0.9rem;
}

.an-thread-post-layout {
    display: flex;
    gap: 1rem;
}

.an-thread-post-user {
    width: 60px;
    flex-shrink: 0;
    text-align: center;
}

.an-thread-post-user-name {
    font-size: 0.8rem;
}

.an-thread-post-user-rep {
    font-size: 0.75rem;
}

.an-thread-post-main {
    flex: 1;
}

.an-thread-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.an-thread-post-meta {
    font-size: 0.8rem;
}

.an-vote-form {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.an-vote-score {
    font-size: 0.8rem;
}

.an-thread-post-footer {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.an-thread-report-form {
    display: inline-flex;
}

/* Simple Admin-Table */
.mg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--an-font-size-xs);
}

.mg-table th,
.mg-table td {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--an-border-soft);
}

.mg-table th {
    text-align: left;
    color: var(--an-text-muted);
    font-weight: 500;
}

@media (max-width: 720px) {
    .mg-forum-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .mg-forum-lastpost {
        text-align: left;
        margin-top: 0.25rem;
    }

    .mg-thread-row {
        grid-template-columns: 1fr;
    }

    .mg-thread-stats {
        justify-content: flex-start;
        margin-top: 0.3rem;
    }
}

/* Modal */
.an-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.an-modal {
    width: 100%;
    max-width: 560px;
    background: #020617;
    border-radius: var(--an-radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--an-shadow-soft);
    padding: 1.1rem 1.2rem 1.2rem;
}

.an-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.an-modal-title {
    margin: 0;
    font-size: 1rem;
}

.an-modal-close {
    border: none;
    background: transparent;
    color: var(--an-text-muted);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}

.an-modal-body {
    margin-top: 0.4rem;
}

body.an-has-modal-open {
    overflow: hidden;
}

