/* Style dla countdowna promocji */
:root {
    --ap-primary-color: #feb900;
    --ap-primary-hover: #135e96;
    --ap-second-gradient: #F3D228;
    --ap-danger-color: #d63638;
    --ap-light-gray: #f0f0f1;
    --ap-medium-gray: #dcdcde;
    --ap-dark-gray: #2c3338;
    --ap-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --ap-transition: all 0.2s ease-in-out;
    --ap-border-radius: 8px;

    /* Dark theme as default (since site uses dark mode by default) */
    --countdown-bg: #1a1a1a;
    --countdown-text: #e0e0e0;
    --countdown-section-bg: #2a2a2a;
}

.promotion-countdown-wrapper {
    max-width: 500px;
    margin: 0 0 20px 0;
    margin-bottom: 24px;
    padding: 5px 20px 20px 20px;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease;
    border-radius: 12px;
}

.nastepneLosowanie {
    margin-bottom: 15px;
}

body.term-promocje .term-description {
    display: none;
}

/* Light mode override */
body.light-mode {
    --countdown-bg: white;
    --countdown-text: #2c3338;
    --countdown-section-bg: #f0f0f1;
    --ap-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nastepneLosowanie p {
    font-size: 18px;
    font-weight: 600;
    color: var(--countdown-text);
    margin: 0;
    transition: color 0.3s ease;
}

.promotion-countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 10px;
    background-color: var(--countdown-section-bg);
    border-radius: var(--ap-border-radius);
    position: relative;
    transition: var(--ap-transition);
}

.light-mode .countdown-section {
    background: #FFF;
    box-shadow: #7171710f 0 0 8px;
}

.countdown-section:hover {
    transform: translateY(-3px);
    box-shadow: var(--ap-card-shadow);
}

.countdown-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color-strong) !important;
    line-height: 1.2;
}

.countdown-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--countdown-text);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.expired {
    font-size: 18px;
    font-weight: 600;
    color: var(--ap-danger-color);
    padding: 15px;
    background-color: rgba(214, 54, 56, 0.1);
    border-radius: var(--ap-border-radius);
    animation: pulse 1.5s infinite;
}

/* Dark mode specific adjustments */
body.dark-mode .expired {
    background-color: rgba(214, 54, 56, 0.2);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 600px) {
    .promotion-countdown-wrapper {
        padding: 15px;
    }

    .nastepneLosowanie p {
        font-size: 16px;
    }

    .countdown-section {
        min-width: 65px;
        padding: 8px;
    }

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

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