/* ==========================================================================
   영업용차량거래소 (cjsdjr.com) 메인 화면
   테마: 아스팔트 다크 + 세이프티 오렌지 + 코션 옐로우
   ========================================================================== */

:root{
	--ycm-asphalt: #16181c;
	--ycm-asphalt-2: #1f2226;
	--ycm-asphalt-3: #2a2d33;
	--ycm-orange: #ff6a00;
	--ycm-orange-dark: #e05e00;
	--ycm-yellow: #ffc400;
	--ycm-white: #f5f6f7;
	--ycm-grey: #a7adb6;
	--ycm-radius: 14px;
}

.ycm-hero, .ycm-regions, .ycm-listings, .ycm-cats { box-sizing: border-box; }
.ycm-hero *, .ycm-regions *, .ycm-listings *, .ycm-cats *, .ycm-modal-overlay * { box-sizing: border-box; }

/* -------------------------------------------------------------------- */
/* Hero                                                                  */
/* -------------------------------------------------------------------- */
.ycm-hero{
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--ycm-asphalt) 0%, var(--ycm-asphalt-2) 100%);
	padding: 96px 24px 88px;
	text-align: center;
	isolation: isolate;
}

.ycm-hero-roadbg{
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		repeating-linear-gradient(90deg,
			transparent 0, transparent 64px,
			rgba(255,196,0,0.55) 64px, rgba(255,196,0,0.55) 112px,
			transparent 112px, transparent 176px);
	background-position: 0 78%;
	background-size: 220px 6px;
	background-repeat: repeat-x;
	opacity: 0.5;
	animation: ycm-road-move 3.2s linear infinite;
}

.ycm-hero-roadbg::before{
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255,106,0,0.25), transparent 70%),
		repeating-linear-gradient(100deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 40px);
}

@keyframes ycm-road-move{
	from { background-position: 0 78%; }
	to   { background-position: -220px 78%; }
}

.ycm-hero-inner{ position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.ycm-hero-eyebrow{
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 16px;
	border: 1px solid rgba(255,196,0,0.5);
	border-radius: 999px;
	color: var(--ycm-yellow);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.ycm-hero-title{
	margin: 0 0 16px;
	color: var(--ycm-white);
	font-size: clamp(34px, 6vw, 64px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.ycm-hero-title span{ color: var(--ycm-orange); }

.ycm-hero-sub{
	margin: 0 0 36px;
	color: var(--ycm-grey);
	font-size: clamp(15px, 2vw, 19px);
	line-height: 1.6;
}

.ycm-hero-cta{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.ycm-btn{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.ycm-btn:hover{ transform: translateY(-2px); }

.ycm-btn-primary{
	background: var(--ycm-orange);
	color: #fff;
}
.ycm-btn-primary:hover{ background: var(--ycm-orange-dark); color:#fff; }

.ycm-btn-ghost{
	background: transparent;
	border-color: rgba(245,246,247,0.35);
	color: var(--ycm-white);
}
.ycm-btn-ghost:hover{ border-color: var(--ycm-yellow); color: var(--ycm-yellow); }

/* -------------------------------------------------------------------- */
/* Section shared                                                        */
/* -------------------------------------------------------------------- */
.ycm-regions, .ycm-listings{
	padding: 64px 24px;
	max-width: 1160px;
	margin: 0 auto;
}

.ycm-section-title{
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	color: var(--ycm-asphalt);
}
.ycm-section-sub{ margin: 0 0 32px; color: #6b7280; font-size: 15px; }

/* -------------------------------------------------------------------- */
/* Region grid                                                          */
/* -------------------------------------------------------------------- */
.ycm-region-grid{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.ycm-region-card{
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 28px 12px;
	min-height: 140px;
	border-radius: var(--ycm-radius);
	border: none;
	background: linear-gradient(145deg, var(--ycm-asphalt-2), var(--ycm-asphalt-3));
	color: var(--ycm-white);
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}
.ycm-region-card:hover{
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}
.ycm-region-card:hover .ycm-region-icon{ color: var(--ycm-orange); }

.ycm-region-icon{
	font-size: 30px;
	line-height: 1;
	color: var(--ycm-yellow);
	transition: color .18s ease;
}

.ycm-region-name{ font-weight: 700; font-size: 16px; }

.ycm-region-badge{
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 11px;
	font-weight: 700;
	color: #d1d5db;
	background: rgba(255,255,255,0.08);
	padding: 3px 8px;
	border-radius: 999px;
}

.ycm-region-card--add{
	background: linear-gradient(145deg, var(--ycm-orange), var(--ycm-orange-dark));
}
.ycm-region-card--add .ycm-region-icon{ color: #fff; }
.ycm-region-card--add .ycm-region-sub{ font-size: 12px; color: rgba(255,255,255,0.85); }

/* -------------------------------------------------------------------- */
/* Listings feed                                                         */
/* -------------------------------------------------------------------- */
.ycm-listings-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.ycm-listing-card{
	border: 1px solid #e5e7eb;
	border-radius: var(--ycm-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .18s ease, transform .18s ease;
}
.ycm-listing-card:hover{ box-shadow: 0 12px 24px rgba(0,0,0,0.08); transform: translateY(-3px); }

.ycm-listing-thumb-link{ display: block; aspect-ratio: 4 / 3; background: var(--ycm-asphalt-2); }
.ycm-listing-thumb{ width: 100%; height: 100%; object-fit: cover; display: block; }
.ycm-listing-thumb--placeholder{
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	font-size: 44px;
	color: var(--ycm-yellow);
}

.ycm-listing-body{ padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }

.ycm-chip{
	align-self: flex-start;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255,106,0,0.12);
	color: var(--ycm-orange-dark);
}

.ycm-listing-title{ margin: 0; font-size: 17px; line-height: 1.4; }
.ycm-listing-title a{ color: var(--ycm-asphalt); text-decoration: none; }
.ycm-listing-title a:hover{ color: var(--ycm-orange); }

.ycm-listing-price{ margin: 0; font-weight: 800; font-size: 16px; color: var(--ycm-asphalt); }

.ycm-listing-link{ margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--ycm-orange-dark); text-decoration: none; }
.ycm-listing-link:hover{ text-decoration: underline; }

.ycm-listings-empty{
	border: 1px dashed #d1d5db;
	border-radius: var(--ycm-radius);
	padding: 48px 24px;
	text-align: center;
	color: #6b7280;
}
.ycm-listings-empty p{ margin: 0 0 6px; }
.ycm-listings-empty-sub{ font-size: 14px; color: #9ca3af; }

/* -------------------------------------------------------------------- */
/* Category chips                                                        */
/* -------------------------------------------------------------------- */
.ycm-cats{
	background: var(--ycm-asphalt);
	padding: 32px 24px 44px;
}
.ycm-cats-wrap{
	max-width: 1160px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.ycm-chip-link{
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--ycm-asphalt-3);
	color: var(--ycm-white);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: border-color .15s ease, color .15s ease;
}
.ycm-chip-link:hover{ border-color: var(--ycm-yellow); color: var(--ycm-yellow); }

.ycm-cats-label{
	max-width: 1160px;
	margin: 24px auto 12px;
	text-align: center;
	color: var(--ycm-grey);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.ycm-chip-link--car{ background: var(--ycm-asphalt-2); }

/* -------------------------------------------------------------------- */
/* "준비중입니다" modal                                                   */
/* -------------------------------------------------------------------- */
.ycm-modal-overlay{
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(15,17,20,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ycm-modal-overlay[hidden]{ display: none; }

.ycm-modal-box{
	background: #fff;
	border-radius: var(--ycm-radius);
	padding: 36px 30px;
	max-width: 340px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.ycm-modal-icon{ font-size: 40px; margin: 0 0 12px; }
.ycm-modal-text{ margin: 0 0 24px; color: #374151; line-height: 1.6; font-size: 15px; }

/* -------------------------------------------------------------------- */
/* Responsive                                                             */
/* -------------------------------------------------------------------- */
@media (max-width: 900px){
	.ycm-region-grid{ grid-template-columns: repeat(3, 1fr); }
	.ycm-listings-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
	.ycm-hero{ padding: 72px 18px 56px; }
	.ycm-regions, .ycm-listings{ padding: 44px 16px; }
	.ycm-region-grid{ grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.ycm-region-card{ min-height: 118px; padding: 20px 10px; }
	.ycm-listings-grid{ grid-template-columns: 1fr; }
	.ycm-hero-cta{ flex-direction: column; align-items: stretch; }
	.ycm-btn{ justify-content: center; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce){
	.ycm-hero-roadbg{ animation: none; }
}
