/**
 * 파일명: style.css
 * 파일경로: /home/sitetestcokr/public_html/assets/css/
 * 기능: SiteTest 공통 스타일
 * 작성일: 2026-05-28
 * 수정일: 2026-05-28
 */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
    color: #111827;
    background: #f8fafc;
    line-height: 1.6;
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.04em;
    color: #2563eb;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
}

.nav a {
    color: #374151;
}

.nav a:hover {
    color: #2563eb;
}

.nav-strong,
.btn-primary {
    background: #2563eb;
    color: #ffffff !important;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.main {
    padding: 42px 0 64px;
}

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    padding: 28px 0;
    font-size: 14px;
}

.page-head {
    margin-bottom: 28px;
}

.page-head h1 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -0.05em;
}

.page-head p {
    margin: 0;
    color: #6b7280;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.form {
    max-width: 520px;
}

.form-wide {
    max-width: 760px;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    background: #ffffff;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

button,
.btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    border: 0;
}

.btn-muted {
    background: #e5e7eb;
    color: #374151;
}

.alert {
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.grid {
    display: grid;
    gap: 18px;
}

.post-card {
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
}

.meta {
    color: #6b7280;
    font-size: 14px;
}

.empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 720px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .page-head h1 {
        font-size: 28px;
    }
}

/* 메인 고도화 섹션 */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.hero-content {
    padding: 52px 42px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.08);
}

.hero-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 680px;
    margin: 20px 0 0;
    color: #475569;
    font-size: 18px;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-panel-title {
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 14px;
}

.hero-list {
    margin: 0;
    padding-left: 20px;
    color: #475569;
}

.hero-list li + li {
    margin-top: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.feature-card h2 {
    margin: 8px 0;
    font-size: 22px;
}

.feature-card p {
    margin: 0;
    color: #64748b;
}

.feature-icon {
    font-size: 30px;
}

.check-section {
    margin-bottom: 28px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0 0 4px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.list-section {
    scroll-margin-top: 90px;
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 38px 24px;
    }

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

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* 검색/필터 */
.filter-box {
    margin-bottom: 16px;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
    gap: 14px;
    align-items: end;
}

@media (max-width: 780px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

/* 운영 공지 */
.notice-wrap {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.notice-card {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 16px;
    padding: 16px 18px;
}

.notice-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
}
