/* ==========================================
   리니지 클래식 커뮤니티 - 메인 스타일
   ========================================== */

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    background-color: #0a0a0f;
    color: #c8b89a;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================
   헤더
   ========================================== */
.site-header {
    background: linear-gradient(180deg, #1a0a00 0%, #0d0d1a 100%);
    border-bottom: 2px solid #8b6914;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(139, 105, 20, 0.4);
}

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

/* 로고 */
.logo a {
    font-size: 22px;
    font-weight: bold;
    color: #d4a017;
    text-shadow: 0 0 10px rgba(212, 160, 23, 0.6);
    letter-spacing: 1px;
}

.logo a:hover {
    color: #ffc107;
}

/* 네비게이션 */
.main-nav ul {
    display: flex;
    gap: 5px;
}

.main-nav ul li a {
    padding: 8px 15px;
    color: #c8b89a;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.main-nav ul li a:hover {
    color: #d4a017;
    border-color: #8b6914;
    background: rgba(139, 105, 20, 0.15);
}

/* 인증 버튼 */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome {
    color: #d4a017;
    font-size: 13px;
}

.btn {
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login {
    background: transparent;
    border: 1px solid #8b6914;
    color: #d4a017;
}

.btn-login:hover {
    background: #8b6914;
    color: #fff;
}

.btn-register {
    background: linear-gradient(135deg, #8b1a1a, #c0392b);
    border: 1px solid #c0392b;
    color: #fff;
}

.btn-register:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.btn-logout {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    font-size: 12px;
    padding: 5px 12px;
}

.btn-logout:hover {
    background: #333;
    color: #fff;
}

/* ==========================================
   메인 컨텐츠
   ========================================== */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 히어로 배너 */
.hero-banner {
    background: linear-gradient(135deg, #1a0a00 0%, #0d0d1a 50%, #1a0808 100%);
    border: 1px solid #8b6914;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139,105,20,0.1) 0%, transparent 70%);
}

.hero-banner h1 {
    font-size: 42px;
    color: #d4a017;
    text-shadow: 0 0 20px rgba(212, 160, 23, 0.5);
    margin-bottom: 15px;
    position: relative;
}

.hero-banner p {
    font-size: 16px;
    color: #a09080;
    position: relative;
}

/* 그리드 섹션 */
.grid-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

/* 카드 공통 */
.card {
    background: linear-gradient(180deg, #12120f 0%, #0d0d0a 100%);
    border: 1px solid #3a3020;
    border-radius: 8px;
    padding: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3020;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.card-header h2 {
    font-size: 16px;
    color: #d4a017;
    letter-spacing: 1px;
}

.card-header a {
    font-size: 12px;
    color: #8b6914;
}

.card-header a:hover {
    color: #d4a017;
}

/* 공지사항 목록 */
.notice-list li {
    padding: 10px 0;
    border-bottom: 1px solid #1e1e1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list li a {
    font-size: 14px;
    color: #c8b89a;
    transition: color 0.2s;
}

.notice-list li a:hover {
    color: #d4a017;
}

.notice-list li .date {
    font-size: 11px;
    color: #666;
}

.badge-new {
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
}

/* 버전 정보 카드 */
.version-info p {
    font-size: 13px;
    color: #a09080;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #1e1e1a;
}

.version-info p:last-child {
    border-bottom: none;
}

.version-info span {
    color: #d4a017;
    float: right;
}

/* ==========================================
   공통 페이지 레이아웃
   ========================================== */
.page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    font-size: 24px;
    color: #d4a017;
    border-left: 4px solid #8b6914;
    padding-left: 15px;
    margin-bottom: 25px;
}

/* ==========================================
   로그인 / 회원가입 폼
   ========================================== */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 0 20px;
}

.auth-box {
    background: linear-gradient(180deg, #12120f 0%, #0d0d0a 100%);
    border: 1px solid #3a3020;
    border-radius: 8px;
    padding: 40px;
}

.auth-box h2 {
    text-align: center;
    color: #d4a017;
    font-size: 22px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3a3020;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #a09080;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: #0a0a0f;
    border: 1px solid #3a3020;
    border-radius: 4px;
    color: #c8b89a;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: 'Malgun Gothic', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b6914;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8b1a1a, #c0392b);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Malgun Gothic', sans-serif;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    box-shadow: 0 0 15px rgba(192, 57, 43, 0.4);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.auth-link a {
    color: #8b6914;
}

.auth-link a:hover {
    color: #d4a017;
}

/* 알림 메시지 */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
}

.alert-error {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid #c0392b;
    color: #e74c3c;
}

.alert-success {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid #27ae60;
    color: #2ecc71;
}

/* ==========================================
   게시판 (공지사항)
   ========================================== */
.board-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.board-table th {
    background: #1a1a14;
    color: #d4a017;
    padding: 12px 15px;
    text-align: center;
    border-bottom: 2px solid #8b6914;
    font-weight: normal;
    letter-spacing: 1px;
}

.board-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #1e1e1a;
    color: #c8b89a;
    text-align: center;
}

.board-table td.title {
    text-align: left;
}

.board-table td.title a:hover {
    color: #d4a017;
}

.board-table tr:hover td {
    background: rgba(139, 105, 20, 0.07);
}

/* ==========================================
   푸터
   ========================================== */
.site-footer {
    background: #080808;
    border-top: 1px solid #2a2015;
    padding: 30px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
    font-size: 13px;
    margin: 0 12px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #8b6914;
}

.footer-info p {
    font-size: 12px;
    color: #444;
    margin-bottom: 5px;
}

/* ==========================================
   반응형
   ========================================== */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
        gap: 10px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero-banner h1 {
        font-size: 28px;
    }
}
