/*
Theme Name: DLmoa
Theme URI: https://test.neocrom2000.com
Description: 다운로드모아 - 공식 소프트웨어 다운로드 모음
Version: 1.1
Author: neocrom2000
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f6f8;
  color: #1a1a2e;
  font-size: 15px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── 헤더 ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo {
  font-size: 20px;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.site-logo span { color: #2563eb; }

.cat-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
  transition: all 0.15s;
  border: 2px solid transparent;
}
.cat-nav a:hover { background: #f3f4f6; color: #111; }
.cat-nav a.active {
  background: var(--cat-color, #2563eb);
  color: #fff;
  border-color: var(--cat-color, #2563eb);
}

/* ── 메인 ── */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

/* ── 섹션 헤더 ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  margin-top: 44px;
}
.section-header:first-child { margin-top: 0; }
.section-title {
  font-size: 17px;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 20px;
  background: var(--cat-color, #2563eb);
  border-radius: 3px;
}
.cat-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 100px;
  background: var(--cat-color, #2563eb);
  color: #fff;
  opacity: 0.15;
}
.section-more { font-size: 13px; color: #9ca3af; transition: color 0.15s; }
.section-more:hover { color: var(--cat-color, #2563eb); }

/* ── 카드 그리드 ── */
.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

/* ── 카드 ── */
.sw-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e9ecef;
  border-top: 4px solid var(--cat-color, #2563eb);
  padding: 18px 14px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sw-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.sw-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 10px;
}
.sw-logo-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 10px;
  border: 1px solid #e9ecef;
}
.sw-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
  line-height: 1.3;
}
.sw-price {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 10px;
  flex: 1;
}
.sw-price.free { color: #10b981; font-weight: 700; }

.btn-download {
  display: inline-block;
  background: var(--cat-color, #2563eb);
  color: #fff !important;
  padding: 6px 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  transition: opacity 0.15s;
}
.btn-download:hover { opacity: 0.85; }

/* ── 단일 소프트웨어 페이지 ── */
.single-sw {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  border: 1px solid #e9ecef;
  border-top: 5px solid var(--cat-color, #2563eb);
}
.single-sw-top {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
}
.single-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 20px;
  flex-shrink: 0;
  border: 1px solid #e9ecef;
}
.single-info h1 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.single-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 600;
}
.meta-badge.cat { background: var(--cat-color, #2563eb); color: #fff; }
.meta-badge.free { background: #d1fae5; color: #065f46; }
.single-desc { color: #374151; line-height: 1.85; margin-bottom: 32px; }
.btn-download-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cat-color, #2563eb);
  color: #fff !important;
  padding: 15px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  transition: opacity 0.15s;
  width: 100%;
  max-width: 300px;
}
.btn-download-big:hover { opacity: 0.85; }

/* ── 푸터 ── */
.site-footer {
  background: #fff;
  border-top: 1px solid #e9ecef;
  padding: 24px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}
.site-footer a { color: #9ca3af; }
.site-footer a:hover { color: #6b7280; }

/* ── 반응형 ── */
@media (max-width: 640px) {
  .sw-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sw-logo, .sw-logo-placeholder { width: 50px; height: 50px; font-size: 22px; }
  .sw-name { font-size: 11.5px; }
  .sw-card { padding: 12px 8px 10px; }
  .single-sw { padding: 28px 18px; }
  .single-sw-top { flex-direction: column; gap: 14px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
}

/* ── 광고 슬롯 ── */
.ad-slot {
  margin-top: 40px;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-placeholder {
  color: #9ca3af;
  font-size: 13px;
}

/* ── 홈 2분할 박스 레이아웃 ── */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 32px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.home-col {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 28px 24px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.home-col-title {
  font-size: 17px;
  font-weight: 900;
  color: #111;
  padding-bottom: 14px;
  border-bottom: 2px solid #f3f4f6;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .home-split { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px 40px; }
}

/* ── 광고 슬롯 ── */
.ad-slot {
  margin-top: 40px;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-placeholder { color: #9ca3af; font-size: 13px; }

/* ── 히어로 배너 ── */
.hero-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  padding: 52px 20px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(99,102,241,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero-title span {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 15.5px;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin-bottom: 24px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-badges span {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
@media (max-width: 640px) {
  .hero-title { font-size: 26px; }
  .hero-banner { padding: 36px 16px 32px; }
  .hero-sub { font-size: 14px; }
}

/* ── 히어로 배너 컴팩트 오버라이드 ── */
.hero-banner { padding: 18px 20px 16px !important; }
.hero-eyebrow { font-size: 11px; margin-bottom: 6px; }
.hero-title { font-size: 20px; letter-spacing: -0.5px; margin-bottom: 6px; }
.hero-sub { font-size: 13px; margin-bottom: 10px; line-height: 1.55; }
.hero-badges span { font-size: 11.5px; padding: 4px 11px; }
.hero-badges { gap: 6px; }
@media (max-width: 640px) {
  .hero-title { font-size: 17px !important; }
  .hero-banner { padding: 14px 16px 12px !important; }
}

/* favicon 로고 선명하게 */
.sw-logo { image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }

/* ── 홈 컬럼 타이틀 업그레이드 ── */
.home-col-title {
  font-size: 16px;
  font-weight: 900;
  padding: 13px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
  border-bottom: none;
}
.col-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.home-col-title--link {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border: 1.5px solid #fde68a;
}
.home-col-title--link .col-title-icon {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #fff;
}
.home-col-title--dl {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  border: 1.5px solid #bfdbfe;
}
.home-col-title--dl .col-title-icon {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

/* ── 인기 띠 ── */
.popular-strip {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 20px;
}
.popular-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.popular-label {
  font-size: 13px;
  font-weight: 800;
  color: #f59e0b;
  white-space: nowrap;
}
.popular-items {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.popular-items::-webkit-scrollbar { display: none; }
.popular-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  transition: all 0.15s;
  white-space: nowrap;
  min-width: 72px;
}
.popular-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-2px);
}
.popular-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.popular-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}
.popular-item span {
  font-size: 11.5px;
  font-weight: 600;
  color: #374151;
}
@media (max-width: 640px) {
  .popular-label { font-size: 12px; }
  .popular-item { padding: 6px 10px; min-width: 60px; }
  .popular-logo { width: 30px; height: 30px; font-size: 17px; }
}
