/**
 * Frontend Styles for WP Customizable Countdown
 */

.wpct-countdown-wrapper {
  width: 100%;
  display: block;
  box-sizing: border-box;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.wpct-countdown-wrapper * {
  box-sizing: border-box;
}

/* Alignment Classes */
.wpct-align-left {
  display: flex;
  justify-content: flex-start;
}
.wpct-align-center {
  display: flex;
  justify-content: center;
}
.wpct-align-right {
  display: flex;
  justify-content: flex-end;
}

/* Core Layout styles using CSS Custom Variables */
.wpct-countdown-container {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--wpct-gap, 16px);
  font-family: var(--wpct-font-family, sans-serif);
  align-items: center;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.wpct-box {
  background-color: var(--wpct-bg-color, #ffffff);
  border: var(--wpct-border-width, 1px) var(--wpct-border-style, solid) var(--wpct-border-color, #e2e8f0);
  border-radius: var(--wpct-border-radius, 12px);
  padding: var(--wpct-padding, 16px);
  box-shadow: var(--wpct-shadow, none);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: calc(var(--wpct-digit-size) * 1.8);
  transition: all 0.3s ease;
}

/* Circular Variation */
.wpct-layout-circular .wpct-box {
  border-radius: 9999px !important;
  aspect-ratio: 1 / 1;
  min-width: calc(var(--wpct-digit-size) * 2.5);
  height: calc(var(--wpct-digit-size) * 2.5);
}

/* Inline Layout Style */
.wpct-layout-inline {
  gap: 6px;
  background-color: var(--wpct-bg-color, transparent) !important;
  border: var(--wpct-border-width, 0px) var(--wpct-border-style, none) var(--wpct-border-color, transparent) !important;
  border-radius: var(--wpct-border-radius, 4px) !important;
  padding: 8px 12px !important;
}

.wpct-layout-inline .wpct-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: auto;
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
}

.wpct-layout-inline.wpct-labels-top .wpct-box {
  flex-direction: column-reverse;
  align-items: center;
}

.wpct-layout-inline.wpct-labels-bottom .wpct-box {
  flex-direction: column;
  align-items: center;
}

/* Divider for Inline Layout */
.wpct-divider {
  font-size: var(--wpct-digit-size, 36px);
  color: var(--wpct-digit-color, #0f172a);
  opacity: 0.5;
  font-family: var(--wpct-font-family, sans-serif);
  line-height: 1;
  display: inline-block;
  align-self: center;
}

/* Elements Styles */
.wpct-digit {
  font-size: var(--wpct-digit-size, 36px);
  font-weight: 700;
  color: var(--wpct-digit-color, #0f172a);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.wpct-label {
  font-size: var(--wpct-label-size, 11px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--wpct-label-color, #64748b);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* Positioning labels spacing */
.wpct-labels-bottom .wpct-label {
  margin-top: 8px;
}

.wpct-labels-top .wpct-label {
  margin-bottom: 8px;
}

/* Responsive styles for mobile devices */
@media (max-width: 640px) {
  .wpct-countdown-container {
    gap: clamp(6px, 2vw, var(--wpct-gap, 16px)) !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .wpct-box {
    padding: clamp(8px, 2.5vw, var(--wpct-padding, 16px)) !important;
    min-width: clamp(55px, 18vw, calc(var(--wpct-digit-size) * 1.8)) !important;
  }
  .wpct-digit {
    font-size: clamp(20px, 8vw, var(--wpct-digit-size, 36px)) !important;
  }
  .wpct-label {
    font-size: clamp(8px, 2.2vw, var(--wpct-label-size, 11px)) !important;
  }
  .wpct-layout-circular .wpct-box {
    min-width: clamp(65px, 20vw, calc(var(--wpct-digit-size) * 2.5)) !important;
    height: clamp(65px, 20vw, calc(var(--wpct-digit-size) * 2.5)) !important;
  }
  .wpct-divider {
    font-size: clamp(20px, 8vw, var(--wpct-digit-size, 36px)) !important;
  }
}

/* Custom CSS Area (Injected from Settings) */
