/* FiveM server landing – professionel, ren styling */

:root {
    --bg: #0f1216;
    --bg-card: #181c24;
    --border: #2a303c;
    --text: #e6e9ef;
    --text-muted: #8b92a0;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --online: #22c55e;
    --offline: #64748b;
    --discord: #5865f2;
    --discord-hover: #4752c4;
    --radius: 10px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Gør det sværere at trække billeder (fx logo, banner) */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Banner */
.banner-wrap {
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;
}

.banner {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

@media (min-width: 480px) {
    .banner {
        max-height: 260px;
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
    margin-top: 1.5rem;
}

.site-logo {
    display: block;
    margin: 0 auto 0.75rem;
    max-height: 72px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.header-home {
    text-decoration: none;
    color: inherit;
    display: block;
}

.header-home:hover .site-title {
    color: var(--accent);
}

.tagline {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Navigation */
.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--border);
}

.nav-link-current {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.12);
}

.nav-link-current:hover {
    color: var(--accent);
}

/* Side-overskrift (på undersider) */
.page-heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

/* Spring til-links (smooth scroll) */
.skip-links {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.skip-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 1rem;
}

.skip-links a:hover {
    color: var(--accent);
}

/* Cards */
.main {
    flex: 1;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

/* Status */
.status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.status-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.status-online {
    background: rgba(34, 197, 94, 0.15);
    color: var(--online);
}

.status-offline {
    background: rgba(100, 116, 139, 0.2);
    color: var(--offline);
}

.hostname {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    word-break: break-word;
}

.players {
    font-size: 1.5rem;
    font-weight: 600;
}

.players-count {
    color: var(--text);
}

.players-sep {
    color: var(--text-muted);
    font-weight: 500;
}

.players-max {
    color: var(--text-muted);
    font-weight: 500;
}

.players-label {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.offline-msg {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.discord-online {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}

.discord-online a {
    color: var(--discord);
    text-decoration: none;
}

.discord-online a:hover {
    color: var(--discord-hover);
    text-decoration: underline;
}

/* Discord */
.discord-text {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.15s ease;
    border: none;
    cursor: pointer;
}

.btn-discord {
    background: var(--discord);
    color: #fff;
}

.btn-discord:hover {
    background: var(--discord-hover);
}

/* Forside: Kom i gang-kort */
.card-links .links-intro {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.links-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--border);
}

/* Sådan joiner du */
.card-join .join-text {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.btn-join {
    background: var(--accent);
    color: #fff;
    margin-bottom: 1rem;
}

.btn-join:hover {
    background: var(--accent-hover);
}

.join-connect {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.join-connect-label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.join-connect-code {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.join-connect .btn-copy {
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    background: var(--border);
    color: var(--text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.join-connect .btn-copy:hover {
    background: var(--text-muted);
}

.link-fivem {
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
}

.link-fivem:hover {
    text-decoration: underline;
}

kbd {
    font-family: var(--font);
    font-size: 0.85em;
    padding: 0.1em 0.35em;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* Regler */
.card-rules .rules-intro {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.rules-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.rules-list li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.rules-list li strong {
    color: var(--text);
}

.rules-welcome {
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* 404-side */
.card-404 {
    text-align: center;
}

.card-404 .page-heading {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.error-404-text {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.error-404-hint {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
}

.card-404 .btn {
    margin-top: 0.25rem;
}

/* Nyheder (forside-preview + nyheder-siden) */
.card-nyheder-preview .nyhed-preview {
    margin-bottom: 0.75rem;
}

.nyhed-preview-titel {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.nyhed-preview-titel:hover {
    color: var(--accent);
}

.nyhed-preview-dato {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.link-nyheder {
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
}

.link-nyheder:hover {
    text-decoration: underline;
}

.opslag-billede {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    display: block;
}

.card-opslag .opslag-titel {
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.opslag-dato {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.opslag-tekst {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.empty-nyheder {
    margin: 0;
    color: var(--text-muted);
}

/* Galleri */
.galleri-intro {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card-galleri-submit {
    margin-bottom: 1.5rem;
}

.msg { padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.9rem; margin-bottom: 1rem; }
.msg-ok { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.msg-err { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.galleri-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.galleri-item {
    margin: 0;
}

.galleri-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

.galleri-item a:hover img {
    opacity: 0.9;
}

.galleri-item figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Mål (forside) */
.card-goal .goal-name { font-weight: 600; margin: 0 0 0.25rem; }
.goal-progress-wrap { font-size: 1.5rem; font-weight: 600; margin: 0.5rem 0; }
.goal-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin: 0.5rem 0; }
.goal-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; }
.goal-hint { font-size: 0.9rem; color: var(--text-muted); margin: 0.5rem 0 0; }
.goal-hint a { color: var(--accent); }

/* Giveaway (offentlig) */
.giveaway-form label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--text-muted); }
.giveaway-form input { width: 100%; max-width: 280px; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); margin-bottom: 1rem; }
.giveaway-end { margin: 0 0 1rem; }
.giveaway-winners { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.giveaway-winners li { margin-bottom: 0.5rem; }

/* Staff */
.staff-intro {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.staff-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.staff-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.staff-avatar-wrap {
    margin: 0 auto 0.75rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border);
}

.staff-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
}

.staff-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.staff-discord {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
}

.staff-discord:hover {
    text-decoration: underline;
}

/* Om serveren */
.card-about .about-intro {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.card-about p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.card-about a {
    color: var(--accent);
    text-decoration: none;
}

.card-about a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer p {
    margin: 0;
}

.footer-actions {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-del {
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    background: var(--border);
    color: var(--text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-del:hover {
    background: var(--text-muted);
}

.del-feedback {
    font-size: 0.8rem;
    color: var(--online);
}

.del-feedback.is-visible {
    display: inline;
}

/* Tilbage til toppen */
.btn-back-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.15s ease;
}

.btn-back-top:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.btn-back-top.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Regler: sidst opdateret */
.rules-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

/* Forside: Hvad er FiveM + Sådan kommer du igang */
.card-fivem-info .fivem-info-text {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.card-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.fivem-steps {
    margin: 0;
    padding-left: 1.25rem;
}

.fivem-steps li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.fivem-steps a {
    color: var(--accent);
    text-decoration: none;
}

.fivem-steps a:hover {
    text-decoration: underline;
}

.fivem-steps code {
    font-size: 0.85em;
    background: var(--bg);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    border: 1px solid var(--border);
}

@media (min-width: 480px) {
    .wrap {
        padding: 3rem 1.5rem;
    }

    .site-title {
        font-size: 2rem;
    }

    .card {
        padding: 1.75rem;
    }

    .players {
        font-size: 1.65rem;
    }
}
