/* Event Counter Plugin Styles */

.counter-container {
    max-width: 500px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.counter-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b9d, #c44569, #f8b500, #6c5ce7);
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.counter-header {
    text-align: center;
    margin-bottom: 30px;
}

.counter-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.counter-date {
    font-size: 1.1em;
    color: #636e72;
    font-weight: 500;
}

.counter-timer {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 15px;
}

.time-unit {
    flex: 1;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px 10px;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.time-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.time-label {
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-details {
    background: rgba(108, 92, 231, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
}

.detail-item {
    margin-bottom: 12px;
    font-size: 1em;
    color: #2d3436;
    line-height: 1.5;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: #6c5ce7;
    font-weight: 600;
}

/* Style Variations */
.counter-modern .counter-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.counter-modern .counter-title {
    color: white;
}

.counter-modern .counter-date {
    color: rgba(255, 255, 255, 0.8);
}

.counter-modern .time-unit {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.counter-modern .detail-item {
    color: white;
}

.counter-modern .detail-item strong {
    color: #f8b500;
}

.counter-minimal .counter-card {
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.counter-minimal .counter-card::before {
    display: none;
}

.counter-minimal .time-unit {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.counter-minimal .time-unit:hover {
    background: #e9ecef;
    transform: none;
    box-shadow: none;
}

.counter-minimal .detail-item strong {
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .counter-container {
        margin: 10px;
        max-width: none;
    }
    
    .counter-card {
        padding: 20px;
        border-radius: 15px;
    }
    
    .counter-title {
        font-size: 1.8em;
    }
    
    .counter-timer {
        gap: 10px;
        margin: 20px 0;
    }
    
    .time-unit {
        padding: 15px 5px;
        border-radius: 10px;
    }
    
    .time-number {
        font-size: 2em;
    }
    
    .time-label {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .counter-timer {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .time-unit {
        flex: 0 0 calc(50% - 4px);
        padding: 12px 5px;
    }
    
    .time-number {
        font-size: 1.8em;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-card {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.time-unit.updating {
    animation: pulse 0.3s ease-in-out;
}

/* Admin Preview Styles */
.counter-preview {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.counter-preview h3 {
    margin-top: 0;
    color: #495057;
}

/* Widget Styles */
.widget .counter-container {
    margin: 0;
}

.widget .counter-card {
    padding: 20px;
}

.widget .counter-title {
    font-size: 1.5em;
}

.widget .time-number {
    font-size: 2em;
}

.widget .counter-timer {
    gap: 8px;
}

.widget .time-unit {
    padding: 15px 5px;
}
