/* ========================================
   ARCHIVE / CATEGORY — H-Style Teal
   ======================================== */

/* ─── Archive Hero (틸 그라데이션) ─── */

.archive-hero {
    background: linear-gradient(135deg, var(--color-hero-start, #0d3535) 0%, var(--color-hero-end, #1a5252) 100%);
    padding: 110px 40px 60px;
    border-bottom: none;
}

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

/* 브레드크럼 */
.archive-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-bottom: 36px;
}

.archive-breadcrumb a {
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s ease;
}

.archive-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.archive-bc-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    margin: 0 3px;
    font-weight: 300;
}

.archive-bc-type {
    color: rgba(255, 255, 255, 0.45);
}

.archive-bc-current {
    color: #ffffff;
    font-weight: 600;
}

/* 제목 + 글수 행 */
.archive-hero-body {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
}

.archive-hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.035em;
    line-height: 1.1;
    position: relative;
}

/* 제목 아래 틸 선 */
.archive-hero-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    margin-top: 18px;
    border-radius: 2px;
}

.archive-post-count {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.32);
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding-bottom: 3px;
}

/* 카테고리 설명 */
.archive-hero-desc,
.archive-hero-desc p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.72;
    margin: 24px 0 0;
    max-width: 540px;
}

/* ─── Posts Section (연한 배경) ─── */

.archive-posts-section {
    display: block;
    width: 100%;
    background: var(--color-bg-alt, #f4f6f8);
    padding: 56px 40px 88px;
    min-height: 300px;
}

.archive-posts-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ─── 아카이브 그리드 레이아웃 ─── */

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ─── 카드 기본 스타일 (front-page.css 미로드 보완) ─── */

.card-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent, #16a085);
    z-index: 2;
}

.card-link {
    display: block;
    height: 100%;
    color: inherit;
}

.card-thumbnail {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 10px 10px 0 0;
}

.card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.card-item:hover .card-thumbnail img {
    transform: scale(1.04);
    opacity: 0.92;
}

.card-no-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f6f8 0%, #e8eaed 100%);
}

.card-no-thumb svg {
    stroke: #cccccc;
}

.card-body {
    padding: 18px 20px 22px;
}

.card-category {
    margin-bottom: 9px;
}

.category-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-accent, #16a085);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: none;
    border: none;
    padding: 0;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    transition: color 0.2s ease;
}

.card-item:hover .card-title {
    color: var(--color-accent, #16a085);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.card-tag {
    font-size: 11px;
    color: #aaaaaa;
    font-weight: 400;
    transition: color 0.2s ease;
}

.card-item:hover .card-tag {
    color: #888888;
}

.card-date {
    font-size: 11px;
    color: #bbbbbb;
    display: block;
    letter-spacing: 0.03em;
}

/* ─── Load More ─── */

.archive-posts-section .load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.archive-posts-section .load-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666666;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    padding: 13px 32px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.archive-posts-section .load-more-btn:hover {
    color: #ffffff;
    border-color: var(--color-accent, #16a085);
    background: var(--color-accent, #16a085);
}

.archive-posts-section .load-more-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: transparent;
}

/* ========================================
   SEARCH — 검색 결과 페이지
   ======================================== */

/* ─── Search Hero — archive-hero 확장 ─── */

.search-hero .archive-hero-body {
    align-items: center;
    gap: 14px;
}

/* 검색 아이콘 */
.search-hero-icon {
    color: #ffffff;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 4px;
}

/* 검색어 강조 */
.search-hero-title {
    font-size: 44px;
}

.search-hero-title .search-keyword {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

/* ─── 재검색 폼 ─── */

.search-refine {
    margin-top: 32px;
    max-width: 480px;
}

.search-refine-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.search-refine-form:focus-within {
    border-color: rgba(255, 255, 255, 0.45);
}

.search-refine-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 14px;
    color: #ffffff;
    font-family: inherit;
}

.search-refine-field::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-refine-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.search-refine-btn:hover {
    color: #ffffff;
}

/* ─── 결과 없음 ─── */

.search-no-results {
    width: 100%;
    padding: 80px 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-no-results-icon {
    color: #cccccc;
    margin-bottom: 28px;
}

.search-no-results-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: center;
}

.search-no-results-title em {
    font-style: normal;
    color: var(--color-accent, #16a085);
    text-decoration: underline;
    text-decoration-color: rgba(22, 160, 133, 0.4);
}

.search-no-results-desc {
    font-size: 14px;
    color: #666666;
    margin-bottom: 32px;
    text-align: center;
}

/* 결과 없음 — 재검색 폼 (화이트 배경) */
.search-no-results-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease;
    width: 100%;
    max-width: 480px;
}

.search-no-results-form:focus-within {
    border-color: var(--color-accent, #16a085);
}

.search-no-results-form .search-refine-field {
    color: #1a1a2e;
}

.search-no-results-form .search-refine-field::placeholder {
    color: #aaaaaa;
}

.search-no-results-form .search-refine-btn {
    color: #aaaaaa;
}

.search-no-results-form .search-refine-btn:hover {
    color: var(--color-accent, #16a085);
}
