/**
 * Etkinlik Countdown Widget CSS
 */

.etkinlik-countdown {
    position: relative;
    width: 100%;
}

.countdown-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.countdown-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    min-height: 100px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.countdown-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.countdown-label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-finished {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    padding: 30px;
}

/* Classic Style */
.countdown-style-classic .countdown-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Flip Style */
.countdown-style-flip .countdown-box {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.countdown-style-flip .countdown-number {
    color: #fff;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    animation: flipNumber 0.6s ease;
}

.countdown-style-flip .countdown-label {
    color: #ecf0f1;
    margin-top: 10px;
}

@keyframes flipNumber {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

/* Circle Style */
.countdown-style-circle .countdown-box {
    background: transparent;
    border: none;
    position: relative;
    width: 140px;
    height: 140px;
}

.countdown-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s linear;
}

.countdown-style-circle .countdown-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.countdown-style-circle .countdown-number {
    font-size: 36px;
}

.countdown-style-circle .countdown-label {
    font-size: 12px;
}

/* Modern Style */
.countdown-style-modern .countdown-box {
    background: #fff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
}

.countdown-style-modern .countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.countdown-style-modern .countdown-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Minimal Style */
.countdown-style-minimal .countdown-box {
    background: transparent;
    border: none;
    border-bottom: 3px solid #e9ecef;
    border-radius: 0;
    box-shadow: none;
    padding: 15px 10px;
}

.countdown-style-minimal .countdown-box:hover {
    border-bottom-color: #667eea;
    transform: none;
    box-shadow: none;
}

.countdown-style-minimal .countdown-number {
    font-size: 56px;
    font-weight: 300;
}

.countdown-style-minimal .countdown-label {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
}

/* Gradient Style */
.countdown-style-gradient .countdown-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    padding: 30px 25px;
}

.countdown-style-gradient .countdown-number,
.countdown-style-gradient .countdown-label {
    color: #fff;
}

.countdown-style-gradient .countdown-label {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .countdown-wrapper {
        gap: 15px;
    }

    .countdown-box {
        min-width: 80px;
        min-height: 80px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .countdown-label {
        font-size: 11px;
    }

    .countdown-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .countdown-style-circle .countdown-box {
        width: 100px;
        height: 100px;
    }

    .countdown-style-circle .countdown-number {
        font-size: 24px;
    }

    .countdown-style-minimal .countdown-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .countdown-wrapper {
        gap: 10px;
    }

    .countdown-box {
        min-width: 70px;
        min-height: 70px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .countdown-style-modern .countdown-box,
    .countdown-style-gradient .countdown-box {
        padding: 15px 10px;
    }
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-box.animate {
    animation: pulse 0.3s ease;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .countdown-style-classic .countdown-box {
        background: #2c3e50;
        border-color: #34495e;
    }

    .countdown-style-classic .countdown-number {
        color: #ecf0f1;
    }

    .countdown-style-classic .countdown-label {
        color: #bdc3c7;
    }

    .countdown-style-modern .countdown-box {
        background: #2c3e50;
    }

    .countdown-style-minimal .countdown-number {
        color: #ecf0f1;
    }
}
