/* Chaos Gaming - Main Styles
   Bold, colorful, gaming aesthetic */

:root {
    --chaos-orange: #ff6b35;
    --chaos-red: #e63946;
    --chaos-yellow: #ffd166;
    --chaos-cyan: #06d6a0;
    --chaos-blue: #118ab2;
    --chaos-purple: #9b5de5;
    --chaos-pink: #f72585;
    --bg-dark: #0d0d0f;
    --bg-card: #16161a;
    --bg-card-hover: #1e1e24;
    --text: #f0f0f0;
    --text-muted: #a0a0a8;
    --border: rgba(255, 107, 53, 0.3);
    --glow: rgba(255, 107, 53, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

h1, h2, h3, .logo {
    font-family: 'Orbitron', sans-serif;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(13, 13, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.logo span {
    color: var(--chaos-orange);
}

/* Logo images */
.logo-img img {
    display: block;
    height: 44px;
    width: auto;
}

.hero-logo {
    max-width: min(360px, 68vw);
    height: auto;
    margin-bottom: 1rem;
}

/* Logo with text (header) */
.logo-with-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-header .logo-with-text img {
    height: 88px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
}

.logo-text .logo-word {
    color: var(--chaos-orange);
    transition: text-shadow 0.3s ease;
}

.logo-with-text:hover .logo-text .logo-word {
    text-shadow: 0 0 12px var(--chaos-orange), 0 0 24px var(--glow);
}

/* Coming Soon badge */
.coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    color: var(--chaos-orange);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 2px solid var(--chaos-orange);
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--chaos-orange);
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #5865f2;
    color: white !important;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
}

.hero-compact {
    min-height: auto;
    padding: 2rem 2rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(155, 93, 229, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 60%, rgba(6, 214, 160, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.hero .chaos {
    color: var(--chaos-orange);
    text-shadow: 0 0 40px var(--glow);
}

.hero .tagline {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #5865f2;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cta-discord:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

/* News section (index) */
.news-section-index {
    padding: 7rem 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.news-section-index h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-preview-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.news-preview-card:hover {
    border-color: var(--chaos-orange);
    transform: translateY(-4px);
}

.news-preview-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-preview-body {
    padding: 1.25rem;
}

.news-preview-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.news-preview-body time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-preview-body p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.news-more {
    text-align: center;
}

.news-more a {
    color: var(--chaos-orange);
    text-decoration: none;
}

.news-more a:hover {
    text-decoration: underline;
}

/* Servers Section */
.servers-section {
    padding: 2rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.servers-section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.server-card {
    display: block;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.server-card:hover {
    transform: translateY(-8px);
    border-color: var(--chaos-orange);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.server-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    min-height: 200px;
}

.server-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-thumb .placeholder-game {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-dark));
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    color: var(--text-muted);
}

.server-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    pointer-events: none;
}

.server-info {
    padding: 1.25rem;
}

.server-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.server-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.server-card.rust:hover .server-info h3 {
    color: var(--chaos-orange);
}

/* Game Section (Rust anchor) */
.game-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.rust-section .section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.rust-section .section-banner {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.rust-section .section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rust-section .section-title p {
    color: var(--text-muted);
}

.section-actions {
    margin-top: 1.5rem;
}

.btn-rust {
    display: inline-block;
    padding: 1rem 1.5rem;
    background: var(--chaos-orange);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}

.btn-rust:hover {
    background: #e85a2a;
    transform: translateX(4px);
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 3rem 2rem 2rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    max-width: 420px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    transition: text-shadow 0.3s ease;
}

.footer-logo img {
    height: 176px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover img {
    opacity: 1;
}

.footer-brand:hover .footer-logo img {
    filter: drop-shadow(0 0 12px var(--chaos-orange));
}

.footer-brand:hover .footer-tagline {
    text-shadow: 0 0 12px var(--chaos-orange);
}

.footer-columns {
    display: flex;
    align-items: stretch;
    gap: 4.5rem;
    margin-left: auto;
}

.footer-col {
    min-width: 100px;
}

.footer-col-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--chaos-orange);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--chaos-orange);
}

.footer-bottom {
    flex-basis: 100%;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-inner .copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.6;
}

.footer-inner .copyright a {
    color: var(--chaos-cyan);
    text-decoration: none;
}

.footer-inner .copyright a:hover {
    text-decoration: underline;
}

/* Footer stack on small screens */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
        max-width: none;
    }

    .footer-columns {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .footer-col {
        text-align: center;
    }
}

/* News page */
.news-main {
    padding-top: 7rem;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.news-section h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.news-empty {
    color: var(--text-muted);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.news-item-image {
    aspect-ratio: 21/9;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-body {
    padding: 1.5rem;
}

.news-item-body h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.news-item-body time {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.news-item-content {
    margin-top: 1rem;
    line-height: 1.7;
}

.news-item-content p { margin-bottom: 1rem; }
.news-item-content p:last-child { margin-bottom: 0; }
.news-item-content ul, .news-item-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.news-item-content li { margin-bottom: 0.5rem; }
.news-item-content img { max-width: 100%; height: auto; border-radius: 8px; }
.news-item-content a { color: var(--chaos-cyan); text-decoration: none; }
.news-item-content a:hover { text-decoration: underline; }
.news-item-content h2, .news-item-content h3 { margin: 1.5rem 0 0.5rem; font-size: 1.25rem; }
.news-item-content blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 4px solid var(--chaos-orange); color: var(--text-muted); }

/* Staff page */
.staff-main {
    padding-top: 7rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.staff-section {
    position: relative;
}

/* Orange divider above the heading, with space below it before "Our Staff" */
.staff-section::before {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--chaos-orange), var(--chaos-cyan));
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

.staff-section h1 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    text-align: center;
}

.staff-section > p.staff-empty {
    text-align: center;
    color: var(--text-muted);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 280px));
    justify-content: center;
    gap: 2rem;
}

.staff-card {
    background: linear-gradient(145deg, rgba(22, 22, 26, 0.9) 0%, rgba(19, 19, 23, 0.95) 100%);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.staff-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

a.staff-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

a.staff-card-link:hover,
a.staff-card-link:focus {
    color: inherit;
    text-decoration: none;
}

a.staff-card-link:focus {
    outline: 2px solid var(--chaos-orange);
    outline-offset: 2px;
}

a.staff-card-link .staff-avatar img {
    border: none;
    display: block;
    vertical-align: middle;
}

a.staff-card-link .staff-name,
a.staff-card-link .staff-role {
    text-decoration: none;
}

.staff-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    background: var(--bg-dark);
    border: 3px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.staff-card:hover .staff-avatar {
    border-color: var(--chaos-orange);
    box-shadow: 0 0 24px rgba(255, 107, 53, 0.2);
}

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

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

.staff-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.staff-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.staff-badge-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.staff-badge-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.staff-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.staff-badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
}

.staff-badge-server {
    background: rgba(255, 107, 53, 0.15);
    color: var(--chaos-orange);
    border: 1px solid rgba(255, 107, 53, 0.4);
}

.staff-badge-role {
    background: rgba(6, 214, 160, 0.12);
    color: var(--chaos-cyan);
    border: 1px solid rgba(6, 214, 160, 0.35);
}

.staff-role {
    color: var(--chaos-orange);
    font-weight: 600;
    font-size: 0.95rem;
}

.staff-steam {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Wreckfest 2 page */
.wreckfest-page,
.wreckfest-2-page {
    padding-top: 7rem;
}

.wreckfest-main,
.wreckfest-2-main {
    min-height: 100vh;
}

.wreckfest-section-links,
.wreckfest-coming-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.wreckfest-section-links h2,
.wreckfest-coming-section h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.wreckfest-news-section,
.wreckfest-staff-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.wreckfest-hero {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
}

.wreckfest-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 107, 53, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.wreckfest-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.wreckfest-banner {
    max-width: min(600px, 90vw);
    height: auto;
    margin-bottom: 2rem;
}

.wreckfest-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.coming-soon-large {
    font-size: 1.5rem;
    color: var(--chaos-orange);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wreckfest-hero p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Back to Main Site - orange button, far right (outside nav, separate from other links) */
.back-to-main-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: var(--chaos-orange);
    color: white !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.back-to-main-btn:hover {
    background: #e85a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    nav {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .server-grid {
        grid-template-columns: 1fr;
    }

    .servers-section,
    .game-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
