/* School-Themed Countdown Timer Styles */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&family=Comfortaa:wght@400;600;700&display=swap');

.countdown-timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 25px;
    margin: 25px 0;
    background: transparent;
    border: 8px solid #2e7d32;
    border-radius: 12px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: visible;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(46, 125, 50, 0.02) 20px,
            rgba(46, 125, 50, 0.02) 21px
        );
}

/* Decorative corner elements - like bulletin board corners */
.countdown-timer-container::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #d32f2f;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    top: -15px;
    left: -15px;
    z-index: 2;
}

.countdown-timer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
    font-family: 'Comfortaa', 'Arial', sans-serif;
    position: relative;
    z-index: 1;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    padding: 25px 20px;
    background: linear-gradient(145deg, #2e7d32 0%, #1b5e20 100%);
    border: 3px solid #1b5e20;
    border-radius: 12px;
    box-shadow: 
        0 3px 12px rgba(46, 125, 50, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    background-color: #1b5e20;
}

/* Decorative paper clip effect */
.countdown-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 12px;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Subtle pattern overlay */
.countdown-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(46, 125, 50, 0.02) 10px,
            rgba(46, 125, 50, 0.02) 11px
        );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: #ffb74d;
    box-shadow: 
        0 6px 22px rgba(46, 125, 50, 0.45),
        0 3px 12px rgba(0, 0, 0, 0.25),
        0 1px 5px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, #388e3c 0%, #2e7d32 100%);
}

.countdown-item:hover::after {
    opacity: 1;
}

.countdown-value {
    font-size: 4em;
    font-weight: 700;
    color: #000000;
    line-height: 1;
    margin-bottom: 12px;
    min-height: 1.2em;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(0, 0, 0, 0.2),
        0 0 28px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    font-family: 'Fredoka One', 'Comfortaa', sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

.countdown-value::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(46, 125, 50, 0.05) 0%,
        transparent 50%,
        rgba(211, 47, 47, 0.03) 100%
    );
    pointer-events: none;
    border-radius: 4px;
}

.countdown-label {
    font-size: 1em;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-family: 'Comfortaa', sans-serif;
    margin-top: 8px;
    padding: 5px 12px;
    background: transparent;
    border-radius: 20px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* School-style separator (colons) */
.countdown-item:not(:last-child)::after {
    content: ':';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5em;
    color: #000000;
    font-weight: 700;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(0, 0, 0, 0.2);
    font-family: 'Fredoka One', sans-serif;
    animation: schoolBlink 1.2s infinite;
    z-index: 10;
    opacity: 0.8;
}

@keyframes schoolBlink {
    0%, 60% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1);
    }
    30%, 90% {
        opacity: 0.4;
        transform: translateY(-50%) scale(0.95);
    }
}

/* School-style flip animation */
.flip-animation {
    animation: schoolFlip 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes schoolFlip {
    0% {
        transform: rotateY(0deg) scale(1);
        color: #2e7d32;
    }
    50% {
        transform: rotateY(90deg) scale(1.1);
        color: #d32f2f;
    }
    100% {
        transform: rotateY(0deg) scale(1);
        color: #2e7d32;
    }
}

/* Style overrides - all use school theme */
.cdt-style-modern .countdown-item,
.cdt-style-classic .countdown-item,
.cdt-style-minimal .countdown-item {
    background: linear-gradient(145deg, #2e7d32 0%, #1b5e20 100%);
    border: 3px solid #1b5e20;
    box-shadow: 
        0 3px 12px rgba(46, 125, 50, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background-color: #1b5e20;
}

.cdt-style-modern .countdown-value,
.cdt-style-classic .countdown-value,
.cdt-style-minimal .countdown-value {
    color: #000000;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(0, 0, 0, 0.2),
        0 0 28px rgba(0, 0, 0, 0.1);
}

.cdt-style-modern .countdown-label,
.cdt-style-classic .countdown-label,
.cdt-style-minimal .countdown-label {
    color: #000000;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

/* Expired Message - School Style */
.countdown-expired {
    text-align: center;
    font-size: 2.2em;
    font-weight: 700;
    color: #ffffff;
    padding: 30px 40px;
    background: linear-gradient(145deg, #2e7d32 0%, #1b5e20 100%);
    border: 4px solid #66bb6a;
    border-radius: 15px;
    box-shadow: 
        0 4px 15px rgba(76, 175, 80, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1);
    animation: schoolPulse 1.5s infinite;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(102, 187, 106, 0.6);
    font-family: 'Fredoka One', 'Comfortaa', sans-serif;
    letter-spacing: 2px;
    position: relative;
}

.countdown-expired::before {
    content: '🚀';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    background: #ffffff;
    padding: 5px 15px;
    border: 3px solid #66bb6a;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@keyframes schoolPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 4px 15px rgba(211, 47, 47, 0.2),
            0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 6px 20px rgba(211, 47, 47, 0.3),
            0 3px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-timer-container {
        padding: 25px 15px;
        border-width: 6px;
    }
    
    .countdown-timer-container::before,
    .countdown-timer-container::after {
        width: 25px;
        height: 25px;
        border-width: 2px;
    }
    
    .countdown-timer {
        gap: 18px;
    }
    
    .countdown-item {
        min-width: 90px;
        padding: 20px 15px;
    }
    
    .countdown-item:not(:last-child)::after {
        right: -15px;
        font-size: 2.8em;
    }
    
    .countdown-value {
        font-size: 3em;
    }
    
    .countdown-label {
        font-size: 0.85em;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .countdown-timer-container {
        padding: 20px 12px;
        border-width: 5px;
        border-radius: 10px;
    }
    
    .countdown-timer-container::before,
    .countdown-timer-container::after {
        width: 20px;
        height: 20px;
        top: -10px;
    }
    
    .countdown-timer {
        gap: 12px;
    }
    
    .countdown-item {
        min-width: 75px;
        padding: 15px 12px;
    }
    
    .countdown-item:not(:last-child)::after {
        right: -10px;
        font-size: 2.2em;
    }
    
    .countdown-value {
        font-size: 2.5em;
        letter-spacing: 0.5px;
    }
    
    .countdown-label {
        font-size: 0.75em;
        letter-spacing: 1px;
        padding: 3px 8px;
    }
    
    .countdown-expired {
        font-size: 1.6em;
        padding: 20px 25px;
    }
}

/* Additional School Decorative Elements - Top right corner */
.countdown-timer-container::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    border: 3px solid #d32f2f;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Subtle animation for the container */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.countdown-timer-container {
    animation: gentleFloat 6s ease-in-out infinite;
}

/* Paper texture effect */
.countdown-item {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(46, 125, 50, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(211, 47, 47, 0.02) 0%, transparent 50%);
}
