/* Countdown Section Styles */
.countdown-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    padding: 60px 40px;
}

.countdown-title {
    text-align: center;
    margin-bottom: 50px;
}

.countdown-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1c4179;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.countdown-subtitle {
    font-size: 1.1rem;
    color: #6e7180;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 30px 25px;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(28, 65, 121, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

/* Takvim yaprağı üst kenar efekti */
.countdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(28, 65, 121, 0.05) 100%);
    border-radius: 16px 16px 0 0;
    clip-path: polygon(0% 0%, 3% 60%, 6% 30%, 10% 60%, 15% 25%, 20% 55%, 25% 20%, 30% 60%, 35% 15%, 40% 55%, 45% 25%, 50% 60%, 55% 20%, 60% 55%, 65% 25%, 70% 60%, 75% 20%, 80% 55%, 85% 30%, 90% 60%, 93% 35%, 97% 55%, 100% 0%);
    z-index: 5;
}

.countdown-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(28, 65, 121, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(28, 65, 121, 0.35);
    animation: glow 2s ease-in-out infinite;
}

.countdown-card:hover::before {
    background: linear-gradient(180deg, #ffffff 0%, rgba(28, 65, 121, 0.08) 100%);
}

.countdown-value-wrapper {
    position: relative;
    height: 100px;
    margin-bottom: 15px;
    perspective: 1500px;
    background: #ffffff;
    border-radius: 8px;
}

.countdown-value {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 900;
    color: #1c4179;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border-radius: 8px;
}

.countdown-value-front {
    transform: rotateX(0deg);
    z-index: 2;
    transform-origin: top center;
}

.countdown-value-back {
    transform: rotateX(180deg);
    z-index: 1;
    opacity: 0;
    transform-origin: top center;
}

/* Sayı değiştiğinde elegant flip animasyonu */
.countdown-value-front.flipping {
    animation: elegantFlipOut 0.5s ease-in-out forwards;
}

.countdown-value-back.flipping {
    animation: elegantFlipIn 0.5s ease-in-out forwards;
}

@keyframes elegantFlipOut {
    0% {
        transform: rotateX(0deg);
        opacity: 1;
        z-index: 2;
    }
    100% {
        transform: rotateX(-90deg);
        opacity: 0;
        z-index: 1;
    }
}

@keyframes elegantFlipIn {
    0% {
        transform: rotateX(90deg);
        opacity: 0;
        z-index: 2;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
        z-index: 2;
    }
}

.countdown-label {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6e7180;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-separator {
    font-size: 3rem;
    font-weight: 700;
    color: #1c4179;
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Decorative elements */
.countdown-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
}

/* Glow effect on hover */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(28, 65, 121, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    50% {
        box-shadow: 0 10px 35px rgba(28, 65, 121, 0.4), 0 6px 18px rgba(28, 65, 121, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 25px rgba(28, 65, 121, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-section {
        padding: 40px 25px;
        border-radius: 20px;
    }

    .countdown-title h1 {
        font-size: 2rem;
    }

    .countdown-subtitle {
        font-size: 1rem;
    }

    .countdown-display {
        gap: 20px;
    }

    .countdown-card {
        min-width: 140px;
        padding: 25px 20px;
    }

    .countdown-value-wrapper {
        height: 70px;
    }

    .countdown-value {
        font-size: 3.5rem;
    }

    .countdown-label {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .countdown-separator {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .countdown-section {
        padding: 30px 20px;
    }

    .countdown-title h1 {
        font-size: 1.5rem;
    }

    .countdown-display {
        gap: 12px;
    }

    .countdown-card {
        min-width: 100px;
        padding: 20px 15px;
    }

    .countdown-value-wrapper {
        height: 60px;
        margin-bottom: 10px;
    }

    .countdown-value {
        font-size: 2.5rem;
    }

    .countdown-label {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }
}

