/* =============================================================================
   SteinServer — Valheim Dark Viking Theme
   ============================================================================= */

:root {
    --bg-dark: #0a0b0e;
    --bg-card: #12141a;
    --bg-card-hover: #181b24;
    --border: #2a2d3a;
    --border-gold: #b8860b;
    --text-primary: #e8e6e3;
    --text-secondary: #9a9590;
    --text-muted: #5a5550;
    --gold: #d4a843;
    --gold-bright: #f0c850;
    --green: #4ade80;
    --red: #f87171;
    --blue: #60a5fa;
    --orange: #fb923c;
    --purple: #a78bfa;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

/* Subtle background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 67, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem 0;
}

.header-rune {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.3);
}

.header-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(212, 168, 67, 0.2);
    margin-bottom: 0.3rem;
}

.header-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(212, 168, 67, 0.3);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.05em;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.status-main {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem 0;
}

.status-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.status-main .status-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.status-online {
    color: var(--green);
}

.status-offline {
    color: var(--red);
}

.status-loading {
    color: var(--text-muted);
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.status-dot-online {
    background: var(--green);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot-offline {
    background: var(--red);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Info Grid (World Settings) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.info-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.modifier-casual {
    color: var(--green);
}

.modifier-less {
    color: var(--blue);
}

/* Connection Guide */
.connect-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.connect-platform h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.connect-platform ol,
.connect-platform ul {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.connect-platform li {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.connect-platform li strong {
    color: var(--text-primary);
}

.connect-note {
    background: rgba(212, 168, 67, 0.08);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 8px;
    padding: 1rem 1.2rem;
}

.connect-note p {
    font-size: 0.9rem;
    color: var(--gold);
}

/* Server Rules */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rule {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.6rem 0;
}

.rule-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.rule span:last-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rule strong {
    color: var(--text-primary);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer-rune {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    margin-bottom: 0.8rem;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-small {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.3rem;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

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

    .status-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        grid-column: 1;
    }

    .card {
        padding: 1.2rem;
    }
}
