/* Agenda Custom Styles */
.agenda-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agenda-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.agenda-card:hover::before {
    left: 100%;
}

.agenda-date-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.agenda-date-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.agenda-status-badge {
    transition: all 0.3s ease;
}

.agenda-status-badge:hover {
    transform: translateY(-2px);
}

.agenda-search-box {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.agenda-search-box:focus-within {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.agenda-filter-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.agenda-filter-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.agenda-detail-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.agenda-detail-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Countdown Timer Styles */
.countdown-timer {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.countdown-timer:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.countdown-item {
    position: relative;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: scale(1.05);
}

.countdown-value {
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    position: relative;
}

.countdown-value::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.3s ease;
}

.countdown-item:hover .countdown-value::after {
    width: 100%;
}

.countdown-label {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.countdown-item:hover .countdown-label {
    color: #fbbf24 !important;
    transform: translateY(-2px);
}

/* Pulse animation for countdown */
@keyframes countdownPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

.countdown-timer {
    animation: countdownPulse 2s infinite;
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.agenda-card:hover {
    animation: float 3s ease-in-out infinite;
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .agenda-card {
        margin-bottom: 1rem;
    }
    
    .agenda-search-box {
        flex-direction: column;
        gap: 1rem;
    }
    
    .agenda-filter-button {
        width: 100%;
    }
    
    .countdown-timer {
        padding: 1rem !important;
    }
    
    .countdown-value {
        font-size: 1.5rem !important;
    }
    
    .countdown-label {
        font-size: 0.75rem !important;
    }
}

/* Loading skeleton animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hover effects for social sharing */
.social-share-btn {
    transition: all 0.3s ease;
}

.social-share-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Custom scrollbar */
.agenda-container::-webkit-scrollbar {
    width: 8px;
}

.agenda-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.agenda-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.agenda-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Countdown specific animations */
@keyframes countdownBounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-8px,0);
    }
    70% {
        transform: translate3d(0,-4px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}

.countdown-value {
    animation: countdownBounce 1s ease-in-out;
}

/* Glow effect for countdown */
.countdown-timer {
    position: relative;
}

.countdown-timer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706, #92400e);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.countdown-timer:hover::before {
    opacity: 0.3;
}

/* Responsive countdown grid */
@media (max-width: 640px) {
    .countdown-timer .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .countdown-timer .grid .countdown-item:nth-child(3),
    .countdown-timer .grid .countdown-item:nth-child(4) {
        margin-top: 0.5rem;
    }
}
