/* Base Styles */
* {
	    margin: 0;
	    padding: 0;
	    box-sizing: border-box;
}

:root {
		    --bg: #0b0f14;
		    --surface: #0f1620;
		    --surface-2: #121c28;
		    --surface-light: #ffffff;
		    --text: #e7eef7;
		    --text-muted: #a8b3c2;
		    --text-dark: #111827;
		    --border: rgba(255, 255, 255, 0.08);
		    --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

		    /* Highlight */
		    --accent: #d4a017;
		    --accent-2: #f97316;
		    --accent-press: #b8830f;

		    /* Texture overlays */
		    --grit: repeating-linear-gradient(
		        135deg,
		        rgba(255, 255, 255, 0.03) 0px,
		        rgba(255, 255, 255, 0.03) 1px,
		        transparent 1px,
		        transparent 6px
		    );
}

body[data-theme="light"] {
		    background: radial-gradient(900px 600px at 15% 0%, rgba(212, 160, 23, 0.12), transparent 55%),
		                radial-gradient(900px 600px at 85% 10%, rgba(249, 115, 22, 0.10), transparent 55%),
		                linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 35%),
		                #eef2f7;
		    color: var(--text-dark);
}

body[data-theme="light"] header,
body[data-theme="light"] footer {
	    background: rgba(255, 255, 255, 0.75);
	    border-color: rgba(17, 24, 39, 0.10);
}

body[data-theme="light"] nav a {
	    color: rgba(17, 24, 39, 0.70);
}

body[data-theme="light"] nav a:hover {
	    color: var(--text-dark);
	    background: rgba(17, 24, 39, 0.06);
}

body[data-theme="light"] .active {
	    color: var(--text-dark);
	    background: rgba(17, 24, 39, 0.06);
	    border-color: rgba(17, 24, 39, 0.10);
}

body[data-theme="light"] .hero {
	    color: #ffffff;
}

body[data-theme="light"] .hero p {
		    color: rgba(255, 255, 255, 0.85);
}

body[data-theme="light"] .server-info h2,
body[data-theme="light"] .info-card h3 {
		    color: var(--text-dark);
}

body[data-theme="light"] .info-card,
body[data-theme="light"] .rule-card {
	    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
	    border-color: rgba(17, 24, 39, 0.10);
	    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
}

body[data-theme="light"] .info-card p,
body[data-theme="light"] .rule-card {
	    color: rgba(17, 24, 39, 0.72);
}

body[data-theme="light"] .rule-card strong,
body[data-theme="light"] .social-icons a {
	    color: var(--text-dark);
}

body[data-theme="light"] .social-icons a:hover {
	    color: var(--accent);
}

body[data-theme="light"] footer {
	    color: rgba(17, 24, 39, 0.70);
}

.nav-actions {
	    display: flex;
	    align-items: center;
	    gap: 10px;
}

.icon-btn {
	    display: inline-flex;
	    align-items: center;
	    gap: 8px;
	    padding: 8px 12px;
	    border-radius: 999px;
	    background: rgba(255, 255, 255, 0.06);
	    border: 1px solid rgba(255, 255, 255, 0.10);
	    color: var(--text);
	    cursor: pointer;
	    transition: transform 0.2s, background 0.2s, border-color 0.2s;
	    user-select: none;
}

.icon-btn:hover {
	    background: rgba(255, 255, 255, 0.10);
	    border-color: rgba(255, 255, 255, 0.16);
	    transform: translateY(-1px);
}

.icon-btn span {
	    font-weight: 600;
	    font-size: 0.95rem;
}

body[data-theme="light"] .icon-btn {
	    background: rgba(17, 24, 39, 0.04);
	    border-color: rgba(17, 24, 39, 0.10);
	    color: var(--text-dark);
}

body[data-theme="light"] .icon-btn:hover {
	    background: rgba(17, 24, 39, 0.06);
	    border-color: rgba(17, 24, 39, 0.14);
}

body {
		    background: var(--grit),
		                radial-gradient(1000px 700px at 20% 0%, rgba(212, 160, 23, 0.14), transparent 55%),
		                radial-gradient(900px 600px at 85% 10%, rgba(249, 115, 22, 0.12), transparent 50%),
		                radial-gradient(1100px 800px at 50% 120%, rgba(0, 0, 0, 0.55), transparent 55%),
		                var(--bg);
		    color: var(--text);
		    line-height: 1.6;
		    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.has-world-age-bar {
		    padding-bottom: 72px;
}

.active {
	    color: var(--text);
	    background: rgba(255, 255, 255, 0.08);
	    border: 1px solid rgba(255, 255, 255, 0.08);
}

.container {
	    width: 90%;
	    max-width: 1200px;
	    margin: 0 auto;
	    padding: 0 15px;
}

/* Header Styles */
header {
	    background: rgba(15, 22, 32, 0.75);
	    backdrop-filter: blur(10px);
	    -webkit-backdrop-filter: blur(10px);
	    color: var(--text);
	    padding: 1rem 0;
	    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
	    border-bottom: 1px solid var(--border);
	    position: sticky;
	    top: 0;
	    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
	    font-size: 1.8rem;
	    display: flex;
	    align-items: center;
	    gap: 10px;
}

.logo i {
	    color: var(--accent);
}

nav ul {
	    display: flex;
	    list-style: none;
	    gap: 25px;
}

nav a {
	    color: var(--text-muted);
	    text-decoration: none;
	    font-weight: 500;
	    transition: color 0.3s;
	    padding: 5px 10px;
	    border-radius: 4px;
}

nav a:hover {
	    color: var(--text);
	    background: rgba(255, 255, 255, 0.06);
}

/* Hero Section */
.hero {
	    background: linear-gradient(rgba(6, 10, 14, 0.72), rgba(6, 10, 14, 0.82)), 
	                url('photos/background.png') no-repeat center center;
	    background-size: cover;
	    color: var(--text);
	    text-align: center;
	    padding: 5rem 0;
	    margin-bottom: 2rem;
}

.hero h2 {
	    font-size: 2.5rem;
	    margin-bottom: 1rem;
	    letter-spacing: -0.02em;
}

.hero p {
	    font-size: 1.2rem;
	    margin-bottom: 2rem;
	    color: rgba(231, 238, 247, 0.85);
}

.hero-actions {
	    display: flex;
	    gap: 12px;
	    justify-content: center;
	    flex-wrap: wrap;
}

/* Buttons */
.btn {
		    display: inline-block;
		    background: var(--accent);
		    color: #08110a;
		    padding: 12px 25px;
		    border-radius: 30px;
		    text-decoration: none;
		    font-weight: bold;
		    transition: all 0.3s;
		    border: none;
		    cursor: pointer;
		    font-size: 1rem;
}

.btn.btn-compact,
button.btn.btn-compact {
		    padding-top: 8px;
		    padding-bottom: 8px;
}

.btn-ghost {
	    background: rgba(255, 255, 255, 0.06);
	    color: var(--text);
	    border: 1px solid rgba(255, 255, 255, 0.10);
	    backdrop-filter: blur(6px);
}

.btn:hover {
	    background: var(--accent-2);
	    transform: translateY(-3px);
	    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-ghost:hover {
	    background: rgba(255, 255, 255, 0.10);
	    border-color: rgba(255, 255, 255, 0.16);
}

.center-actions {
		    display: flex;
		    justify-content: center;
		    margin-top: 1.5rem;
}

.lead {
		    max-width: 920px;
		    margin: 0.75rem auto 0;
		    text-align: center;
		    color: var(--text-muted);
		    font-size: 1.05rem;
}

/* Server Info */
.server-info {
	    padding: 3rem 0;
	    background: transparent;
}

.server-info h2 {
	    text-align: center;
	    margin-bottom: 2rem;
	    color: var(--text);
	    font-size: 2rem;
	    letter-spacing: -0.02em;
}

.info-grid {
	    display: grid;
	    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	    gap: 2rem;
}

.server-info .info-grid + .info-grid {
	    margin-top: 2rem;
}

.info-card {
	    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
	    padding: 2rem;
	    border-radius: 10px;
	    text-align: center;
	    border: 1px solid rgba(255, 255, 255, 0.10);
	    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-card i {
	    font-size: 3rem;
	    color: var(--accent);
	    margin-bottom: 1rem;
}

.info-card h3 {
	    color: var(--text);
	    margin-bottom: 0.5rem;
}

.info-card p {
	    color: var(--text-muted);
}

/* Footer */
footer {
		    background: rgba(15, 22, 32, 0.75);
		    color: var(--text-muted);
		    text-align: center;
		    padding: 2rem 0;
		    border-top: 1px solid var(--border);
}

.world-age-bar {
		    position: fixed;
		    left: 0;
		    right: 0;
		    bottom: 0;
		    z-index: 200;
		    background: linear-gradient(180deg, rgba(15, 22, 32, 0.78), rgba(11, 15, 20, 0.90));
		    border-top: 1px solid rgba(255, 255, 255, 0.10);
		    backdrop-filter: blur(10px);
		    -webkit-backdrop-filter: blur(10px);
		    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
}

.world-age-bar::before {
		    content: "";
		    position: absolute;
		    inset: 0;
		    background: var(--grit);
		    opacity: 0.7;
		    pointer-events: none;
}

.world-age-bar-inner {
		    position: relative;
		    display: flex;
		    align-items: center;
		    justify-content: space-between;
		    gap: 12px;
		    padding: 14px 0;
}

.world-age-bar-title {
		    display: inline-flex;
		    align-items: center;
		    gap: 10px;
		    font-weight: 800;
		    letter-spacing: 0.02em;
		    text-transform: uppercase;
		    color: rgba(231, 238, 247, 0.85);
}

.world-age-bar-title i {
		    color: var(--accent);
}

.world-age-bar-value {
		    font-variant-numeric: tabular-nums;
		    font-weight: 800;
		    font-size: 1.05rem;
		    color: var(--text);
}

/* Modal */
.modal {
		    position: fixed;
		    inset: 0;
		    z-index: 300;
		    display: none;
}

.modal.is-open {
		    display: block;
}

.modal-overlay {
		    position: absolute;
		    inset: 0;
		    background: rgba(0, 0, 0, 0.65);
}

.modal-dialog {
		    position: relative;
		    width: min(980px, calc(100% - 28px));
		    max-height: calc(100vh - 28px);
		    margin: 14px auto;
		    background: linear-gradient(180deg, rgba(18, 28, 40, 0.96), rgba(11, 15, 20, 0.94));
		    border: 1px solid rgba(255, 255, 255, 0.12);
		    border-radius: 14px;
		    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
		    overflow: hidden;
}

.modal-dialog::before {
		    content: "";
		    position: absolute;
		    inset: 0;
		    background: var(--grit);
		    opacity: 0.55;
		    pointer-events: none;
}

.modal-header {
		    position: relative;
		    display: flex;
		    align-items: center;
		    justify-content: space-between;
		    gap: 12px;
		    padding: 14px 16px;
		    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
		    background: rgba(255, 255, 255, 0.04);
}

.modal-title {
		    font-weight: 900;
		    letter-spacing: -0.01em;
}

.modal-close {
		    padding: 8px 10px;
}

.modal-body {
		    position: relative;
		    padding: 16px;
		    overflow: auto;
		    max-height: calc(100vh - 28px - 60px);
}

.modal-lead {
		    color: var(--text-muted);
		    margin-bottom: 16px;
}

.enchant-list {
		    display: grid;
		    gap: 12px;
}

.enchant {
		    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
		    border: 1px solid rgba(255, 255, 255, 0.10);
		    border-radius: 12px;
		    padding: 14px 14px;
}

.enchant h4 {
		    margin: 0 0 10px 0;
		    font-size: 1.1rem;
		    letter-spacing: -0.01em;
}

.enchant h4 span {
		    color: var(--text-muted);
		    font-weight: 700;
		    font-size: 0.95rem;
}

.enchant p {
		    margin: 6px 0;
		    color: var(--text-muted);
}

.enchant strong {
		    color: var(--text);
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
	    color: var(--text);
	    font-size: 1.5rem;
	    margin: 0 10px;
	    transition: color 0.3s;
}

.social-icons a:hover {
	    color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
	    .header-content {
	        flex-direction: column;
	        gap: 15px;
	    }
    
	    nav ul {
	        gap: 10px;
	        flex-wrap: wrap;
	        justify-content: center;
	    }

	    .nav-actions {
	        width: 100%;
	        justify-content: center;
	        flex-wrap: wrap;
	    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
	    .info-grid {
	        grid-template-columns: 1fr;
	    }

	    .btn {
	        width: 80%;
	        max-width: 300px;
	        margin-bottom: 10px;
	    }
}
