/* ============================================
   COUNTDOWN HERO — Premium Redesign
   Brand Color: #7d1d60
   ============================================ */

/* Section Base */
.countdown-hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e0e2a 0%, #2a1540 25%, #3d1d55 50%, #2a1540 75%, #1e0e2a 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    min-height: 420px;
    display: flex;
    align-items: center;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Floating Orbs (Dekoratif) */
.countdown-hero-section::before,
.countdown-hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.countdown-hero-section::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7d1d60, transparent 70%);
    top: -100px;
    right: -80px;
    animation: orbFloat 8s ease-in-out infinite;
}

.countdown-hero-section::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #da3931, transparent 70%);
    bottom: -80px;
    left: -60px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

/* Particle Grid Background */
.countdown-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(var(--primary-background) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

/* Inner Container */
.countdown-hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Badge */
.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    border-radius: 50px;
    background: var(--primary-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-text);
    transition: all 0.4s ease;
}

.countdown-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 white;
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.534);
    }
}

/* Title */
.countdown-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.countdown-title .title-highlight {
    background: white;
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Description */
.countdown-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
}

.countdown-sub-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   COUNTDOWN TIMER CARDS
   ============================================ */

.countdown-timer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 8px;
    max-width: 520px;
    align-items: center;
}


/* Each Time Card */
.countdown-card {
    position: relative;
    text-align: center;
    perspective: 600px;
}

.countdown-card-inner {
    position: relative;
    padding: 20px 8px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.countdown-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-background), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.countdown-card:hover .countdown-card-inner {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(231, 76, 139, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(125, 29, 96, 0.2);
}

.countdown-card:hover .countdown-card-inner::before {
    opacity: 1;
}

/* Number Display */
.countdown-number {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease, color 0.3s ease;
    animation: none;
    position: relative;
    display: inline-block;
}

/* Flip animation on value change */
.countdown-number.flip {
    animation: flipDown 0.5s ease-out;
}

@keyframes flipDown {
    0% {
        transform: rotateX(-80deg) scale(0.9);
        opacity: 0.3;
    }

    50% {
        transform: rotateX(10deg) scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: rotateX(0) scale(1);
        opacity: 1;
    }
}

/* Label */
.countdown-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    animation: none;
}

/* Separator (: dots) */
.countdown-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-bottom: 16px;
}

.countdown-separator span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-background);
    animation: separatorPulse 1s ease-in-out infinite;
}

.countdown-separator span:last-child {
    animation-delay: 0.5s;
}

@keyframes separatorPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ============================================
   URGENCY STATES
   ============================================ */

/* Less than 1 hour remaining */
.countdown-hero-section.urgent .countdown-number {
    color: #ff6b6b;
}

.countdown-hero-section.urgent .countdown-card-inner {
    border-color: rgba(255, 107, 107, 0.3);
}

.countdown-hero-section.urgent .countdown-separator span {
    background: rgba(255, 107, 107, 0.6);
}

/* Less than 10 minutes remaining */
.countdown-hero-section.very-urgent .countdown-number {
    color: #ff4757;
    animation: urgentPulse 1s ease-in-out infinite;
}

@keyframes urgentPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   CTA BUTTON
   ============================================ */

.countdown-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    background: var(--primary-background);
    color: var(--white-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.countdown-cta:hover {
    transform: scale(1.05);
}

.countdown-cta:active {
    transform: translateY(-1px);
}

.countdown-cta .cta-arrow {
    transition: transform 0.3s ease;
}


/* ============================================
   COMPLETION STATE
   ============================================ */

.countdown-completion {
    text-align: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Confetti Particles --- */
.completion-confetti {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 12px;
    background: var(--color, #e74c8b);
    border-radius: 2px;
    opacity: 0;
    animation: confettiFall 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(var(--x, 50px)) translateY(300px) rotate(var(--rot, 180deg)) scale(0.5);
    }
}

/* --- Animated Checkmark --- */
.completion-check-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    animation: checkAppear 0.6s ease-out 0.3s both;
}

/* Glow ring behind checkmark */
.completion-check-ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(125, 29, 96, 0.3);
    animation: glowRingPulse 2s ease-in-out infinite 1.5s;
}

.completion-check-ring::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(125, 29, 96, 0.1);
}

@keyframes glowRingPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(125, 29, 96, 0.2);
        opacity: 1;
    }

    50% {
        box-shadow: 0 0 20px 4px rgba(125, 29, 96, 0.15);
        opacity: 0.8;
    }
}

@keyframes checkAppear {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.completion-checkmark {
    color: var(--primary-background, #7d1d60);
    filter: drop-shadow(0 0 24px rgba(125, 29, 96, 0.5));
    width: 88px;
    height: 88px;
}

.checkmark-circle {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkCircle 0.6s ease-in-out 0.5s forwards;
}

@keyframes checkCircle {
    to {
        stroke-dashoffset: 0;
    }
}

.checkmark-check {
    stroke: #ffffff;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkDraw 0.4s ease-in-out 1s forwards;
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Content --- */
.completion-content {
    animation: contentReveal 0.6s ease-out 0.8s both;
    margin-bottom: 8px;
}

@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.completion-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.completion-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
    font-weight: 500;
}

.completion-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* --- Trust Badges --- */
.completion-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    animation: contentReveal 0.6s ease-out 1.1s both;
}

.completion-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.completion-badge-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.completion-badge-item svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.completion-badge-item:hover svg {
    opacity: 1;
}

/* --- CTA Button --- */
.completion-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    border-radius: 12px;
    background: var(--primary-background, #7d1d60);
    color: var(--white-text, #ffffff);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: contentReveal 0.6s ease-out 1.3s both;
    letter-spacing: 0.02em;
}

.completion-cta:hover {
    transform: scale(1.05);
}

.completion-cta:active {
    transform: scale(0.98);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .completion-title {
        font-size: 1.75rem;
    }

    .completion-badges {
        gap: 8px;
    }

    .completion-badge-item {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .completion-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   RIGHT SIDE — DECORATIVE RING
   ============================================ */

.countdown-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.countdown-ring {
    position: relative;
    width: 280px;
    height: 280px;
}

.countdown-ring-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.079);
}

.countdown-ring-progress {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-border);
    border-right-color: var(--primary-border);
    animation: ringRotate 6s linear infinite;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.countdown-ring-inner {
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.ring-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.ring-value {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ring-unit {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white-text);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Decorative dots around ring */
.ring-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(231, 76, 139, 0.4);
}

.ring-dot:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ring-dot:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.ring-dot:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ring-dot:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .countdown-hero-section {
        min-height: auto;
    }

    .countdown-visual {
        display: none;
    }

    .countdown-timer-grid {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .countdown-hero-section {
        padding: 3rem 0;
    }

    .countdown-title {
        font-size: 1.75rem;
    }

    .countdown-description {
        font-size: 0.95rem;
    }

    .countdown-timer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .countdown-separator {
        display: none !important;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-card-inner {
        padding: 14px 6px 12px;
        border-radius: 12px;
    }

    .countdown-label {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }

    .countdown-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .countdown-title {
        font-size: 1.5rem;
    }

    .countdown-number {
        font-size: 1.6rem;
    }

    .countdown-card-inner {
        padding: 12px 4px 10px;
        border-radius: 10px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .countdown-hero-section {
        animation: none;
    }

    .countdown-hero-section::before,
    .countdown-hero-section::after {
        animation: none;
    }

    .countdown-number.flip {
        animation: none;
    }

    .countdown-ring-progress {
        animation: none;
    }

    .countdown-title .title-highlight {
        animation: none;
    }

    .badge-dot {
        animation: none;
    }

    .countdown-separator span {
        animation: none;
    }
}

/* Hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}