/**
 * DdangTube Homepage Styles
 *
 * @package DdangTube
 * @since   1.0.0
 */


/* ===================
   1. CSS Variables
   =================== */

.ddtc-home {
	--home-card-bg: var(--bg-secondary, #1c1c1c);
	--home-card-border: rgba(255, 255, 255, 0.05);
	--home-card-border-hover: rgba(255, 255, 255, 0.1);
	--home-card-radius: 16px;
	--home-card-radius-lg: 24px;
	--home-gap-section: 32px;
	--home-gap-card: 24px;
	--home-card-padding: 24px;
}


/* ===================
   2. Layout
   =================== */

.ddtc-home {
	max-width: 1280px;
	margin: 0 auto;
}

.ddtc-home__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--home-gap-section);
}

.ddtc-home__main {
	display: flex;
	flex-direction: column;
	gap: var(--home-gap-section);
	min-width: 0;
}

.ddtc-home__aside {
	display: flex;
	flex-direction: column;
	gap: var(--home-gap-section);
}


/* ===================
   3. Welcome Section
   =================== */

.ddtc-home__welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--home-gap-section);
	flex-wrap: wrap;
	gap: 16px;
}

.ddtc-home__greeting {
	font-size: 1.275rem;
	font-weight: 700;
	color: var(--text-primary, #f2f3f5);
	margin: 0 0 7px;
	line-height: 1.3;
}

.ddtc-home__subtitle {
	font-size: 0.95rem;
	color: var(--text-secondary, #b5bac1);
	margin: 0;
}

.ddtc-home__today-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--home-card-bg);
	border: 1px solid var(--home-card-border);
	border-radius: 9999px;
	padding: 8px 16px;
	font-size: 0.875rem;
	color: var(--text-secondary, #b5bac1);
	white-space: nowrap;
}

.ddtc-home__online-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	flex-shrink: 0;
}


/* ===================
   4. Card Base
   =================== */

.ddtc-home__card {
	background: var(--home-card-bg);
	border: 1px solid var(--home-card-border);
	border-radius: var(--home-card-radius-lg);
	padding: var(--home-card-padding);
	transition: border-color 0.2s ease;
	text-decoration: none;
	color: inherit;
	display: block;
}

.ddtc-home__card:hover {
	border-color: var(--home-card-border-hover);
}

a.ddtc-home__card {
	cursor: pointer;
}


/* ===================
   5. Badges
   =================== */

.ddtc-home__badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 9999px;
	letter-spacing: 0.02em;
}

.ddtc-home__badge--event {
	background: rgba(168, 85, 247, 0.2);
	color: #c084fc;
}

.ddtc-home__badge--debate {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(20, 184, 166, 0.2);
	color: #2dd4bf;
}

.ddtc-home__badge--notice {
	background: rgba(239, 68, 68, 0.2);
	color: #f87171;
	border-radius: 4px;
	padding: 4px 8px;
	flex-shrink: 0;
}


/* ===================
   6. Featured Cards
   =================== */

.ddtc-home__featured-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--home-gap-card);
}

/* Event Card */
.ddtc-home__card--event {
	overflow: hidden;
}

.ddtc-home__card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.ddtc-home__card-header-meta {
	font-size: 0.75rem;
	color: var(--text-muted, #80848e);
}

.ddtc-home__card-thumb {
	position: relative;
	width: 100%;
	height: 160px;
	border-radius: var(--home-card-radius);
	overflow: hidden;
	margin-bottom: 20px;
	border: 1px solid var(--home-card-border);
}

.ddtc-home__card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ddtc-home__card:hover .ddtc-home__card-thumb img {
	transform: scale(1.05);
}

.ddtc-home__card-thumb-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
	pointer-events: none;
}

.ddtc-home__card-thumb--empty {
	background: var(--bg-tertiary, #383a40);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ddtc-home__card-thumb-placeholder {
	text-align: center;
}

.ddtc-home__card-status-label {
	font-size: 0.875rem;
	color: var(--text-muted, #80848e);
}

.ddtc-home__card-dday {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(4px);
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.ddtc-home__card-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary, #f2f3f5);
	margin: 0 0 8px;
	transition: color 0.2s ease;
}

.ddtc-home__card--event:hover .ddtc-home__card-title {
	color: #c084fc;
}

.ddtc-home__card-meta {
	font-size: 0.875rem;
	color: var(--text-secondary, #b5bac1);
	margin-bottom: 24px;
}

.ddtc-home__card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.ddtc-home__card-participants-count {
	font-size: 0.8rem;
	color: var(--text-muted, #80848e);
}

.ddtc-home__card-progress-label {
	font-size: 0.875rem;
	font-weight: 700;
	color: #c084fc;
}

.ddtc-home__progress-bar {
	width: 100%;
	height: 8px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 9999px;
	overflow: hidden;
}

.ddtc-home__progress-fill {
	height: 100%;
	border-radius: 9999px;
	transition: width 0.5s ease;
}

.ddtc-home__progress-fill--event {
	background: #a855f7;
}

/* Empty Card State */
.ddtc-home__card--empty {
	display: flex;
	flex-direction: column;
}

.ddtc-home__card-empty-text {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	color: var(--text-muted, #80848e);
	font-size: 0.95rem;
}

/* Debate Card */
.ddtc-home__card--debate {
	display: flex;
	flex-direction: column;
}

.ddtc-home__debate-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-bottom: 24px;
}

.ddtc-home__debate-question {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text-primary, #f2f3f5);
	text-align: left;
	margin: 0 0 20px;
	transition: color 0.2s ease;
	line-height: 1.5em;
}

.ddtc-home__card--debate:hover .ddtc-home__debate-question {
	color: #2dd4bf;
}

.ddtc-home__debate-vs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 16px;
}

.ddtc-home__debate-option {
	text-align: center;
}

.ddtc-home__debate-option-name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary, #f2f3f5);
}

.ddtc-home__debate-vs-label {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--text-muted, #80848e);
	text-transform: uppercase;
}

.ddtc-home__debate-bar {
	position: relative;
	width: 100%;
	height: 16px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 9999px;
	overflow: hidden;
}

.ddtc-home__debate-bar-left {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	background: #3b82f6;
}

.ddtc-home__debate-bar-right {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	background: #ef4444;
}

.ddtc-home__debate-bar-divider {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--home-card-bg);
	transform: skewX(-12deg);
}

.ddtc-home__debate-deadline {
	font-size: 0.75rem;
	color: var(--text-muted, #80848e);
	text-align: center;
	background: rgba(255, 255, 255, 0.05);
	padding: 8px;
	border-radius: 8px;
}

.ddtc-home__debate-deadline strong {
	color: var(--text-primary, #f2f3f5);
}

.ddtc-home__debate-deadline--expired {
	color: var(--accent-danger, #f04747);
}


/* ===================
   7. Rolling Notices
   =================== */

.ddtc-home__notices {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--home-card-bg);
	border: 1px solid var(--home-card-border);
	border-radius: var(--home-card-radius);
	padding: 0 16px;
	height: 56px;
	overflow: hidden;
}

.ddtc-home__notices-track {
	flex: 1;
	position: relative;
	height: 24px;
	overflow: hidden;
}

.ddtc-home__notice-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 24px;
	display: flex;
	align-items: center;
	font-size: 0.875rem;
	color: var(--text-secondary, #b5bac1);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	transform: translateY(100%);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.ddtc-home__notice-item.is-active {
	opacity: 1;
	transform: translateY(0);
}

.ddtc-home__notice-item:hover {
	color: var(--text-primary, #f2f3f5);
}

.ddtc-home__notices-more {
	font-size: 0.75rem;
	color: var(--text-muted, #80848e);
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color 0.2s ease;
}

.ddtc-home__notices-more:hover {
	color: var(--text-primary, #f2f3f5);
}


/* ===================
   8. Popular Posts
   =================== */

.ddtc-home__popular-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.ddtc-home__section-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary, #f2f3f5);
	margin: 0;
}

.ddtc-home__popular-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ddtc-home__popular-item {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--home-card-bg);
	border: 1px solid var(--home-card-border);
	border-radius: var(--home-card-radius);
	padding: 16px;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ddtc-home__popular-item:hover {
	background: rgba(255, 255, 255, 0.03);
	border-color: var(--home-card-border-hover);
}

.ddtc-home__popular-badge {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 700;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.ddtc-home__popular-item:hover .ddtc-home__popular-badge {
	transform: scale(1.1);
}

.ddtc-home__popular-content {
	flex: 1;
	min-width: 0;
}

.ddtc-home__popular-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text-primary, #f2f3f5);
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

.ddtc-home__popular-item:hover .ddtc-home__popular-title {
	color: var(--accent-primary, #EA7E11);
}

.ddtc-home__popular-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	color: var(--text-muted, #80848e);
}

.ddtc-home__popular-stats {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.ddtc-home__popular-stat {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary, #b5bac1);
}

.ddtc-home__popular-stat-icon {
	font-size: 0.8rem;
}

.ddtc-home__popular-empty {
	text-align: center;
	padding: 48px 16px;
	color: var(--text-muted, #80848e);
}


/* ===================
   9. Hall of Fame – 전설의 멤버 TOP 10
   =================== */

.ddtc-home__fame-card {
	background: var(--home-card-bg);
	border: 1px solid var(--home-card-border);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: auto;
}

/* --- Header --- */
.ddtc-home__fame-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.ddtc-home__fame-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ddtc-home__fame-icon svg {
	filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.4));
}

.ddtc-home__fame-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text-primary, #f2f3f5);
	margin: 0;
	line-height: 1.3;
}

.ddtc-home__fame-subtitle {
	font-size: 0.75rem;
	color: var(--text-muted, #80848e);
	margin: 2px 0 0;
	line-height: 1.3;
}

/* --- Ranking List --- */
.ddtc-home__fame-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: 166px;
	overflow-y: auto;
	position: relative;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent 100%);
}

.ddtc-home__fame-list::-webkit-scrollbar {
	width: 4px;
}

.ddtc-home__fame-list::-webkit-scrollbar-track {
	background: transparent;
}

.ddtc-home__fame-list::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 4px;
}

.ddtc-home__fame-list::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.25);
}

.ddtc-home__fame-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	transition: background-color 0.2s ease;
}

.ddtc-home__fame-item:hover {
	background: rgba(255, 255, 255, 0.04);
}

/* Rank number */
.ddtc-home__fame-rank {
	width: 22px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--text-muted, #80848e);
	text-align: center;
	flex-shrink: 0;
	line-height: 1;
}

/* Medal colors for top 3 */
.ddtc-home__fame-item--gold .ddtc-home__fame-rank {
	color: #FFD700;
	font-size: 0.85rem;
}

.ddtc-home__fame-item--silver .ddtc-home__fame-rank {
	color: #C0C0C0;
}

.ddtc-home__fame-item--bronze .ddtc-home__fame-rank {
	color: #CD7F32;
}

/* Avatar */
.ddtc-home__fame-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid rgba(255, 255, 255, 0.06);
}

.ddtc-home__fame-item--gold .ddtc-home__fame-avatar {
	border-color: rgba(255, 215, 0, 0.35);
}

.ddtc-home__fame-item--silver .ddtc-home__fame-avatar {
	border-color: rgba(192, 192, 192, 0.3);
}

.ddtc-home__fame-item--bronze .ddtc-home__fame-avatar {
	border-color: rgba(205, 127, 50, 0.3);
}

/* Nickname */
.ddtc-home__fame-name {
	flex: 1;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-primary, #f2f3f5);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.ddtc-home__fame-item--gold .ddtc-home__fame-name {
	font-weight: 600;
}

/* Stat (duration) */
.ddtc-home__fame-stat {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--text-muted, #80848e);
	white-space: nowrap;
	flex-shrink: 0;
}

.ddtc-home__fame-item--gold .ddtc-home__fame-stat {
	color: #FFD700;
	font-weight: 600;
}

/* --- Empty state --- */
.ddtc-home__fame-empty {
	text-align: center;
	padding: 32px 16px;
	color: var(--text-muted, #80848e);
	font-size: 0.85rem;
}

.ddtc-home__fame-empty p {
	margin: 0;
}

/* --- CTA Button --- */
.ddtc-home__fame-cta {
	display: block;
	margin-top: 16px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-secondary, #b5bac1);
	font-size: 0.8rem;
	font-weight: 600;
	padding: 10px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ddtc-home__fame-cta:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}


/* ===================
   10. Calendar Widget
   =================== */

.ddtc-home__calendar-card {
	padding: var(--home-card-padding);
}

.ddtc-home__calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.ddtc-home__calendar-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-primary, #f2f3f5);
	margin: 0;
}

/* Navigation Arrows */
.ddtc-home__calendar-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ddtc-home__calendar-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	border: 1px solid var(--home-card-border);
	background: transparent;
	color: var(--text-secondary, #b5bac1);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	padding: 0;
}

.ddtc-home__calendar-nav-btn:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-primary, #f2f3f5);
	border-color: var(--home-card-border-hover);
}

.ddtc-home__calendar-nav-btn:active {
	background: rgba(255, 255, 255, 0.08);
}

.ddtc-home__calendar-week-label {
	font-size: 0.7rem;
	color: var(--text-muted, #80848e);
	padding: 0 6px;
	white-space: nowrap;
	min-width: 80px;
	text-align: center;
}

.ddtc-home__calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
	margin-bottom: 24px;
	transition: opacity 0.2s ease;
}

.ddtc-home__calendar-grid--loading {
	opacity: 0.4;
	pointer-events: none;
}

.ddtc-home__calendar-day-label {
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--text-muted, #80848e);
	margin-bottom: 8px;
}

.ddtc-home__calendar-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	border-radius: 8px;
	padding: 4px 0;
	transition: background-color 0.2s ease;
}

.ddtc-home__calendar-day:hover {
	background: rgba(255, 255, 255, 0.04);
}

.ddtc-home__calendar-day--selected {
	background: rgba(168, 85, 247, 0.12);
}

.ddtc-home__calendar-day--selected .ddtc-home__calendar-day-num {
	background: #a855f7;
	color: #fff;
	font-weight: 700;
}

.ddtc-home__calendar-day--selected.ddtc-home__calendar-day--today .ddtc-home__calendar-day-num {
	background: var(--accent-primary, #EA7E11);
	color: #000;
}

.ddtc-home__calendar-day-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary, #b5bac1);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ddtc-home__calendar-day:hover .ddtc-home__calendar-day-num {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-primary, #f2f3f5);
}

.ddtc-home__calendar-day--today .ddtc-home__calendar-day-num {
	background: var(--accent-primary, #EA7E11);
	color: #000;
	font-weight: 700;
}

/* Multi-dot container */
.ddtc-home__calendar-dots {
	display: flex;
	align-items: center;
	gap: 3px;
	height: 6px;
}

.ddtc-home__calendar-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Schedule Section (TODAY + UPCOMING) */
.ddtc-home__calendar-schedule {
	border-top: 1px solid var(--home-card-border);
	padding-top: 16px;
}

.ddtc-home__calendar-section {
	margin-bottom: 16px;
}

.ddtc-home__calendar-section:last-child {
	margin-bottom: 0;
}

.ddtc-home__calendar-section-label {
	font-size: 0.6rem;
	font-weight: 700;
	color: var(--text-muted, #80848e);
	margin: 0 0 6px;
	letter-spacing: 0.05em;
}

.ddtc-home__calendar-section-label--today {
	color: var(--accent-primary, #EA7E11);
}

.ddtc-home__calendar-section-label--selected {
	color: #a855f7;
}

/* Legacy today section */
.ddtc-home__calendar-today {
	padding-top: 16px;
	border-top: 1px solid var(--home-card-border);
}

.ddtc-home__calendar-today-label {
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--text-muted, #80848e);
	margin: 0 0 12px;
	letter-spacing: 0.05em;
}

.ddtc-home__calendar-event {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 0;
}

.ddtc-home__calendar-event--link {
	text-decoration: none;
	border-radius: 8px;
	padding: 6px 8px;
	margin: 0 -8px;
	transition: background-color 0.2s ease;
}

.ddtc-home__calendar-event--link:hover {
	background: rgba(255, 255, 255, 0.05);
}

.ddtc-home__calendar-event--link:hover .ddtc-home__calendar-event-name {
	color: #fff;
}

.ddtc-home__calendar-event:last-child {
	margin-bottom: 0;
}

.ddtc-home__calendar-event-bar {
	width: 4px;
	height: 32px;
	border-radius: 9999px;
	flex-shrink: 0;
}

.ddtc-home__calendar-event-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ddtc-home__calendar-event-name {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-primary, #f2f3f5);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ddtc-home__calendar-event-time {
	font-size: 0.75rem;
	color: var(--text-muted, #80848e);
}

.ddtc-home__calendar-no-event {
	font-size: 0.8rem;
	color: var(--text-muted, #80848e);
	margin: 0;
}


/* ===================
   11. Promotion Card
   =================== */

.ddtc-home__promo-card {
	padding: 0;
	overflow: hidden;
}

.ddtc-home__promo-image {
	position: relative;
	height: 192px;
	background: var(--bg-tertiary, #383a40);
	display: flex;
	align-items: flex-end;
}

.ddtc-home__promo-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1), transparent);
	pointer-events: none;
}

.ddtc-home__promo-ad-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	background: var(--accent-primary, #EA7E11);
	color: #000;
	font-size: 0.625rem;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 4px;
	z-index: 1;
}

.ddtc-home__promo-text {
	position: relative;
	z-index: 1;
	padding: 16px;
}

.ddtc-home__promo-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 4px;
}

.ddtc-home__promo-desc {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ddtc-home__promo-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.05);
}

.ddtc-home__promo-author {
	font-size: 0.75rem;
	color: var(--text-secondary, #b5bac1);
}

.ddtc-home__promo-link {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--accent-primary, #EA7E11);
}


/* ===================
   12. Popular Keywords Card
   =================== */

.ddtc-home__badge--keywords {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(34, 197, 94, 0.2);
	color: #4ade80;
}

.ddtc-home__card--keywords {
	display: flex;
	flex-direction: column;
}

/* FluxShop 인기검색어 — 카드 내부 오버라이드 */
.ddtc-home__card--keywords .fluxshop-popular-keywords {
	margin: 0;
}

.ddtc-home__card--keywords .fluxshop-popular-keywords--vertical {
	max-width: none;
	border: none;
	border-radius: 0;
	background: transparent;
}

.ddtc-home__card--keywords .fluxshop-popular-keywords__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ddtc-home__card--keywords .fluxshop-popular-keywords__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 4px;
	border-bottom: none;
	border-radius: 8px;
	transition: background 0.15s ease;
}

.ddtc-home__card--keywords .fluxshop-popular-keywords__item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.ddtc-home__card--keywords .fluxshop-popular-keywords__rank {
	min-width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--text-primary, #f2f3f5);
	background: none;
	flex-shrink: 0;
}

.ddtc-home__card--keywords .fluxshop-popular-keywords__item:nth-child(-n+3) .fluxshop-popular-keywords__rank {
	background: rgba(234, 126, 17, 0.15);
	color: var(--accent-primary, #EA7E11);
	border-radius: 6px;
}

.ddtc-home__card--keywords .fluxshop-popular-keywords__link {
	flex: 1;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-secondary, #b5bac1);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.15s ease;
}

.fluxshop-popular-keywords--vertical .fluxshop-popular-keywords__item:nth-child(n+4) .fluxshop-popular-keywords__rank {
	background: #f2f3f533;
}

.ddtc-home__card--keywords .fluxshop-popular-keywords__item:nth-child(-n+3) .fluxshop-popular-keywords__link {
	color: var(--text-primary, #f2f3f5);
	font-weight: 600;
}

.ddtc-home__card--keywords .fluxshop-popular-keywords__link:hover {
	color: var(--accent-primary, #EA7E11);
}

.ddtc-home__card--keywords .fluxshop-popular-keywords__count {
	font-size: 0.7rem;
	color: var(--text-muted, #80848e);
	flex-shrink: 0;
}

.ddtc-home__card--keywords .fluxshop-popular-keywords__count::after {
	content: '회';
	margin-left: 1px;
}

.ddtc-home__keywords-footer {
	display: flex;
	justify-content: flex-end;
	padding: 8px 4px 0;
	margin-top: 4px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ddtc-home__keywords-refresh {
	font-size: 0.65rem;
	color: var(--text-muted, #80848e);
	opacity: 0.7;
}


/* ===================
   13. Enhanced Debate Card
   =================== */

.ddtc-home__debate-timer {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #f59e0b;
}

.ddtc-home__debate-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.ddtc-home__debate-option-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ddtc-home__debate-option-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ddtc-home__debate-option-name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.775rem;
	font-weight: 500;
	color: var(--text-secondary, #b5bac1);
}

.ddtc-home__debate-option-row--lead .ddtc-home__debate-option-name {
	color: var(--text-primary, #f2f3f5);
	font-weight: 600;
}

.ddtc-home__debate-option-pct {
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--text-muted, #80848e);
}

.ddtc-home__debate-option-row--lead .ddtc-home__debate-option-pct {
	color: var(--text-primary, #f2f3f5);
}

.ddtc-home__debate-option-bar {
	width: 100%;
	height: 8px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 9999px;
	overflow: hidden;
}

.ddtc-home__debate-option-fill {
	height: 100%;
	border-radius: 9999px;
	transition: width 0.6s ease;
	min-width: 0;
	background: rgba(45, 212, 191, 0.4);
}

.ddtc-home__debate-option-row--lead .ddtc-home__debate-option-fill {
	background: #2dd4bf;
}

.ddtc-home__debate-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid var(--home-card-border);
	margin-top: auto;
}

.ddtc-home__debate-stats {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ddtc-home__debate-stat {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	color: var(--text-muted, #80848e);
}

.ddtc-home__debate-stat svg {
	opacity: 0.7;
}

.ddtc-home__debate-cta {
	font-size: 0.8rem;
	font-weight: 700;
	color: #2dd4bf;
	transition: color 0.2s ease;
}

.ddtc-home__card--debate:hover .ddtc-home__debate-cta {
	color: #5eead4;
}


/* ===================
   14. Calendar Prize Info
   =================== */

.ddtc-home__calendar-event-prize {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.7rem;
	font-weight: 500;
	color: #f59e0b;
	margin-top: 2px;
}

.ddtc-home__calendar-event-prize svg {
	flex-shrink: 0;
	opacity: 0.8;
}


/* ===================
   15. Animations
   =================== */

.ddtc-home__card,
.ddtc-home__popular-item,
.ddtc-home__notices {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.ddtc-home__card.is-visible,
.ddtc-home__popular-item.is-visible,
.ddtc-home__notices.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger animation delay */
.ddtc-home__popular-item:nth-child(2).is-visible { transition-delay: 0.05s; }
.ddtc-home__popular-item:nth-child(3).is-visible { transition-delay: 0.1s; }
.ddtc-home__popular-item:nth-child(4).is-visible { transition-delay: 0.15s; }
.ddtc-home__popular-item:nth-child(5).is-visible { transition-delay: 0.2s; }


/* ===================
   16. Responsive
   =================== */

/* Desktop (1200px+) */
@media (min-width: 1200px) {
	.ddtc-home__grid {
		grid-template-columns: 2fr 1fr;
	}

	.ddtc-home__featured-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Laptop (992px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
	.ddtc-home__featured-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ddtc-home__aside {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.ddtc-home__fame-card {
		grid-column: span 2;
	}

	.ddtc-home__fame-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2px 12px;
		max-height: none;
		overflow-y: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
	.ddtc-home {
		--home-gap-section: 24px;
		--home-card-padding: 20px;
	}
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
	.ddtc-home {
		--home-gap-section: 20px;
		--home-gap-card: 16px;
		--home-card-padding: 16px;
		--home-card-radius: 12px;
		--home-card-radius-lg: 16px;
	}

	.ddtc-home__welcome {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 20px;
	}

	.ddtc-home__today-pill {
		font-size: 0.8rem;
		padding: 6px 12px;
	}

	.ddtc-home__debate-question {
		font-size: 1.05rem;
	}

	.ddtc-home__debate-footer {
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
	}

	.ddtc-home__card--keywords .fluxshop-popular-keywords__item {
		padding: 8px 4px;
		gap: 10px;
	}

	.ddtc-home__popular-stats {
		display: none;
	}

	.ddtc-home__notices {
		height: 48px;
		padding: 0 12px;
		gap: 10px;
	}

	/* 스크롤 애니메이션 비활성화 — 즉시 표시 */
	.ddtc-home__card,
	.ddtc-home__popular-item,
	.ddtc-home__notices {
		opacity: 1;
		transform: none;
	}
}

/* Small mobile (< 480px) */
@media (max-width: 479px) {
	.ddtc-home {
		--home-card-padding: 14px;
	}

	.ddtc-home__greeting {
		font-size: 1.25rem;
	}

	.ddtc-home__card-title {
		font-size: 1.1rem;
	}

	.ddtc-home__popular-badge {
		width: 40px;
		height: 40px;
		font-size: 0.65rem;
	}
}


/* ===================
   17. Reduced Motion
   =================== */

@media (prefers-reduced-motion: reduce) {
	.ddtc-home__card,
	.ddtc-home__popular-item,
	.ddtc-home__notices {
		opacity: 1;
		transform: none;
		transition: border-color 0.15s ease, background-color 0.15s ease;
	}

	.ddtc-home__notice-item {
		transition: none;
	}
}
