/* 파일명: _0_core/common.css */
/* 설명: 사이트 전체 공통 스타일 */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body { font-family: "Malgun Gothic", "맑은 고딕", Arial, sans-serif; background-color: #f3f4f6; color: #111827; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.main-content { min-height: calc(100vh - 140px); padding-top: 110px; }
.container { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; }
.card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04); }

.page-header { margin-bottom: 24px; text-align: center; }
.page-header h2 { font-size: 36px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.page-header p { font-size: 16px; color: #6b7280; }

.btn { display: inline-block; padding: 10px 18px; background-color: #6b7280; color: #ffffff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn:hover { background-color: #4b5563; }
.btn-secondary { background-color: #9ca3af; color: #ffffff; }
.btn-secondary:hover { background-color: #6b7280; }
.btn-danger { background-color: #6b7280; color: #ffffff; }
.btn-danger:hover { background-color: #6b7280; }

.input, .textarea, .input-file { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 14px; background: #ffffff; color: #111827; outline: none; }
.input:focus, .textarea:focus, .input-file:focus { border-color: #9ca3af; }
.textarea { resize: vertical; min-height: 220px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: #111827; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* 공통 헤더 스타일 (includes.css가 이를 덮어씀) */
.site-header { position: fixed; top: 0; left: 0; width: 100%; background: #ffffff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); z-index: 1000; }
.header-inner { max-width: 1200px; margin: 0 auto; height: 80px; padding: 0 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.logo { justify-self: start; }
.main-nav { justify-self: center; }
.auth-menu { justify-self: end; }
.logo a { font-size: 38px; font-weight: 800; color: #111827; letter-spacing: -1px; }
.main-nav ul, .auth-menu ul { display: flex; align-items: center; }
.main-nav ul { justify-content: center; gap: 34px; }
.auth-menu ul { justify-content: flex-end; gap: 18px; }
.main-nav a, .auth-menu a { color: #374151; font-size: 16px; font-weight: 600; transition: 0.2s; }
.main-nav a:hover, .auth-menu a:hover { color: #111827; }

/* 공통 푸터 스타일 */
.site-footer { background: #ffffff; border-top: 1px solid #e5e7eb; margin-top: 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 24px 20px; text-align: center; }
.footer-inner p { color: #6b7280; font-size: 15px; }

.basic-table { width: 100%; border-collapse: collapse; }
.basic-table th, .basic-table td { border-bottom: 1px solid #e5e7eb; padding: 14px 12px; text-align: left; }
.basic-table th { background: #f9fafb; color: #111827; font-weight: 700; }

@media (max-width: 900px) {
    .header-inner { grid-template-columns: 1fr; height: auto; padding: 18px 20px; gap: 14px; }
    .logo, .main-nav, .auth-menu { text-align: center; }
    .main-nav ul, .auth-menu ul { justify-content: center; flex-wrap: wrap; }
    .main-content { padding-top: 180px; }
    .page-header h2 { font-size: 30px; }
}

@media (max-width: 640px) {
    .container { padding: 24px 14px 50px; }
    .card { padding: 18px; }
    .page-header h2 { font-size: 26px; }
    .logo a { font-size: 30px; }
    .main-nav ul { gap: 18px; }
    .auth-menu ul { gap: 14px; }
}