:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --accent: #10b981;
    --accent-hover: #059669;
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* 히어로 섹션 (메인 배너) */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    /* 원하는 마인크래프트 스크린샷 URL이나 로컬 이미지 경로(예: url('bg.png'))로 변경하세요 */
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 1)), 
                url('https://images.unsplash.com/photo-1607513746994-51f730a44832?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(30, 41, 59, 0.85);
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #f59e0b; /* 로딩 중 색상 */
}

.status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.status-dot.offline {
    background-color: #ef4444;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-sub);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* 주소 복사 박스 */
.ip-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    gap: 1.2rem;
}

.ip-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.copy-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.copy-btn:hover {
    background: var(--accent-hover);
}

.copy-btn:active {
    transform: scale(0.98);
}

/* 서버 소개 카드 섹션 */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.card p {
    color: var(--text-sub);
    font-size: 0.95rem;
}

/* 하단 커뮤니티 링크 섹션 */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(30, 41, 59, 0.4);
    margin-top: 2rem;
}

.cta-desc {
    color: var(--text-sub);
    margin-top: 0.5rem;
}

.discord-btn {
    display: inline-block;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2.2rem;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 1.5rem;
    transition: opacity 0.2s;
}

.discord-btn:hover {
    opacity: 0.9;
}

/* 복사 완료 알림창 (토스트) */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: bottom 0.3s ease-in-out;
    z-index: 1000;
}

.toast.show {
    bottom: 30px;
}

footer {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-sub);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .ip-box { flex-direction: column; padding: 1rem; width: 100%; }
    .copy-btn { width: 100%; }
}