/* ===========================================
   Canada Day Countdown - Tool Specific Styles (Red, White, Maple Leaf Theme)
   =========================================== */

/* Tool Layout */
.cdc-box {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

/* --- Display Box --- */
.cdc-display-box {
    background: #FF0000; /* Deep Red Base */
    background-image: linear-gradient(135deg, #CC0000, #FF0000); /* Red Gradient */
    border: 5px solid #FFFFFF; /* Crisp White Border */
    border-radius: 20px;
    padding: 40px 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.7);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Maple Leaf Watermark Effect */
.cdc-display-box::before {
    content: '🍁';
    font-size: 15rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15; /* Subtly visible */
    z-index: 1;
    pointer-events: none;
}

/* Content wrapper */
.cdc-content {
    position: relative;
    z-index: 2;
}

.cdc-date-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFFFF; /* White Text */
    text-shadow: 1px 1px 2px #333;
}

.cdc-countdown-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white band */
    border-radius: 10px;
}

.cdc-countdown-item {
    text-align: center;
    flex: 1;
    padding: 10px 5px;
}

.cdc-time-value {
    font-size: 4rem;
    font-weight: 900;
    color: #FFFFFF; /* White Value */
    line-height: 1.1;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5); /* Strong shadow for depth */
}

.cdc-time-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #f0f0f0; /* Off-White Unit */
    text-transform: uppercase;
    margin-top: 5px;
}

/* --- Festive Message --- */
.cdc-message {
    margin-top: 20px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #FF0000; /* Red Text */
    background: #FFFFFF; /* White background for pop */
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden until the countdown hits zero */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cdc-time-value {
        font-size: 3rem;
    }
}
@media (max-width: 500px) {
    .cdc-countdown-grid {
        flex-wrap: wrap;
    }
    .cdc-countdown-item {
        flex: 1 1 45%; 
    }
    .cdc-time-value {
        font-size: 2.2rem;
    }
    .cdc-time-unit {
        font-size: 0.8rem;
    }
    .cdc-display-box {
        padding: 30px 10px;
    }
}