/**
 * TDF Editor — Element Pack inspired widgets (base styles)
 */

/* Countdown */
.tdf-countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: center; }
.tdf-countdown__unit { padding: 20px 12px; border-radius: 12px; }
.tdf-countdown__digit { display: block; font-size: 2.25rem; font-weight: 800; line-height: 1; }
.tdf-countdown__label { display: block; margin-top: 8px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.tdf-countdown__expired { grid-column: 1 / -1; text-align: center; font-size: 1.25rem; font-weight: 700; padding: 16px; }

/* Call Out */
.tdf-call-out__layout { align-items: center; gap: 20px; }
.tdf-call-out__icon { font-size: 2rem; color: var(--tdf-brand-accent, #ecb238); flex-shrink: 0; }
.tdf-call-out__body { flex: 1; min-width: 0; }
.tdf-call-out__title { margin: 0 0 8px; font-size: 1.25rem; }
.tdf-call-out__text { margin: 0; opacity: 0.9; }
.tdf-call-out__btn { flex-shrink: 0; white-space: nowrap; }

/* Featured Box */
.tdf-featured-box { position: relative; padding: 32px 28px; border-radius: 16px; background: #fff; box-shadow: 0 8px 32px rgba(14, 59, 72, 0.08); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.tdf-featured-box__badge { position: absolute; top: 16px; right: 16px; padding: 4px 12px; border-radius: 999px; background: var(--tdf-brand-accent, #ecb238); color: var(--tdf-brand-dark, #0e3b48); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; }
.tdf-featured-box__icon { font-size: 2rem; color: var(--tdf-brand-primary, #1a7480); margin-bottom: 16px; }
.tdf-featured-box__title { margin: 0 0 10px; font-size: 1.25rem; }
.tdf-featured-box__text { margin: 0 0 16px; color: #64748b; line-height: 1.55; }
.tdf-featured-box__link { font-weight: 700; color: var(--tdf-brand-primary, #1a7480); text-decoration: none; }

/* Creative Button */
.tdf-creative-button__link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 8px; font-weight: 700; text-decoration: none; position: relative; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.tdf-creative-button__icon { display: inline-flex; transition: transform 0.25s ease; }

/* Process Steps */
.tdf-process-steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.tdf-process-steps__item { position: relative; }
.tdf-process-steps__num { display: inline-block; font-size: 2rem; font-weight: 800; color: var(--tdf-brand-accent, #ecb238); line-height: 1; margin-bottom: 12px; }
.tdf-process-steps__title { margin: 0 0 8px; font-size: 1.0625rem; }
.tdf-process-steps__text { margin: 0; font-size: 0.875rem; color: #64748b; line-height: 1.5; }

/* Price List */
.tdf-price-list__list { list-style: none; margin: 0; padding: 0; }
.tdf-price-list__item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e2e8f0; }
.tdf-price-list__title { display: block; font-size: 1rem; }
.tdf-price-list__desc { display: block; font-size: 0.8125rem; color: #64748b; margin-top: 4px; }
.tdf-price-list__price { font-weight: 800; color: var(--tdf-brand-primary, #1a7480); white-space: nowrap; }

/* Hover Box */
.tdf-hover-box__wrap { display: block; position: relative; overflow: hidden; border-radius: 12px; text-decoration: none; color: inherit; }
.tdf-hover-box__img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.tdf-hover-box__default { position: absolute; inset: auto 0 0 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; }
.tdf-hover-box__default h3 { margin: 0; font-size: 1.125rem; }
.tdf-hover-box__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px; text-align: center; background: rgba(14, 59, 72, 0.92); color: #fff; opacity: 0; transition: opacity 0.4s ease; }
.tdf-hover-box__overlay h3 { margin: 0 0 10px; }
.tdf-hover-box__overlay p { margin: 0; font-size: 0.875rem; opacity: 0.9; }
.tdf-hover-box__wrap:hover .tdf-hover-box__overlay { opacity: 1; }
.tdf-hover-box__wrap:hover .tdf-hover-box__img { transform: scale(1.08); }

/* Fancy List */
.tdf-fancy-list { list-style: none; margin: 0; padding: 0; }
.tdf-fancy-list__item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eef2f6; }
.tdf-fancy-list__icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(26, 116, 128, 0.1); color: var(--tdf-brand-primary, #1a7480); flex-shrink: 0; }
.tdf-fancy-list__text { display: block; font-size: 0.9375rem; }
.tdf-fancy-list__sub { display: block; font-size: 0.8125rem; color: #64748b; margin-top: 2px; }

/* Marquee */
.tdf-marquee { overflow: hidden; width: 100%; }
.tdf-marquee__track { overflow: hidden; }
.tdf-marquee__content { display: flex; gap: 48px; width: max-content; animation: tdf-marquee-scroll var(--tdf-marquee-dur, 25s) linear infinite; }
.tdf-marquee__item { font-size: 1.5rem; font-weight: 800; white-space: nowrap; color: var(--tdf-brand-dark, #0e3b48); }
.tdf-marquee[data-direction="right"] .tdf-marquee__content { animation-direction: reverse; }
@keyframes tdf-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Testimonial Carousel */
.tdf-testimonial-carousel__slide { margin: 0; padding: 36px 28px; background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(14, 59, 72, 0.08); height: 100%; }
.tdf-testimonial-carousel__quote { margin: 0 0 20px; font-size: 1.0625rem; line-height: 1.6; font-style: italic; }
.tdf-testimonial-carousel__meta { display: flex; align-items: center; gap: 12px; font-style: normal; font-size: 0.875rem; }
.tdf-testimonial-carousel__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* Logo Grid */
.tdf-logo-grid__grid { display: grid; gap: 24px; align-items: center; }
.tdf-logo-grid__item { display: flex; align-items: center; justify-content: center; padding: 20px; transition: transform 0.3s ease, filter 0.3s ease; }
.tdf-logo-grid__item img { max-height: 48px; width: auto; max-width: 100%; }

/* Breadcrumbs */
.tdf-breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.tdf-breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.tdf-breadcrumbs a { color: var(--tdf-brand-primary, #1a7480); text-decoration: none; }
.tdf-breadcrumbs__sep { opacity: 0.45; }

/* Business Hours */
.tdf-business-hours { list-style: none; margin: 0; padding: 0; }
.tdf-business-hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; font-size: 0.9375rem; }
.tdf-business-hours__row.is-closed .tdf-business-hours__time { color: #ef4444; font-weight: 600; }

/* Animated Heading */
.tdf-animated-heading { line-height: 1.2; }
.tdf-animated-heading__rotate { display: inline-block; color: var(--tdf-brand-accent, #ecb238); font-weight: 800; min-width: 0.3em; }
.tdf-animated-heading__word { display: inline-block; transition: opacity 0.35s ease, transform 0.35s ease; }

/* Divider */
.tdf-divider { display: flex; align-items: center; gap: 16px; width: 100%; }
.tdf-divider__line { flex: 1; height: 2px; background: var(--tdf-brand-primary, #1a7480); opacity: 0.35; }
.tdf-divider__center { flex-shrink: 0; color: var(--tdf-brand-primary, #1a7480); font-weight: 600; font-size: 0.875rem; }

@media (max-width: 640px) {
	.tdf-countdown__grid { grid-template-columns: repeat(2, 1fr); }
	.tdf-call-out__layout { flex-direction: column; align-items: flex-start; }
}
