/* Cookie System Enhancements */

/* Cookie icon animation in header */
.social-icons li a .fa-cookie-bite {
    transition: all 0.3s ease;
    animation: cookiePulse 2s infinite;
}

.social-icons li a:hover .fa-cookie-bite {
    transform: rotate(15deg) scale(1.2);
    color: #ff9800 !important;
}

@keyframes cookiePulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.05);
    }
}

/* Cookie banner enhanced animations */
.cookie-banner.show {
    animation: slideUpBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUpBounce {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    60% {
        transform: translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cookie modal enhanced styles */
.cookie-modal.show .cookie-modal-content {
    animation: modalZoomIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalZoomIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cookie toggle enhanced styles */
.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.cookie-toggle-slider:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* Enhanced cookie buttons */
.cookie-btn {
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.cookie-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Cookie status indicator */
.cookie-status-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-100%);
}

.cookie-status-indicator.show {
    opacity: 1;
    transform: translateX(0);
}

.cookie-status-indicator.rejected {
    background: rgba(231, 76, 60, 0.9);
}

.cookie-status-indicator.partial {
    background: rgba(255, 152, 0, 0.9);
}

/* Legal link highlight in banner */
.cookie-banner-text a {
    position: relative;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.cookie-banner-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.cookie-banner-text a:hover::after {
    width: 100%;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-text h4 {
        font-size: 16px;
    }
    
    .cookie-banner-text p {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cookie-modal-content {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .cookie-modal-header {
        border-bottom-color: #34495e;
    }
    
    .cookie-modal-footer {
        border-top-color: #34495e;
    }
    
    .cookie-category {
        border-color: #34495e;
    }
    
    .cookie-category-header {
        background: #34495e;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-banner {
        background: #000;
        border: 2px solid #fff;
    }
    
    .cookie-btn-accept {
        background: #00ff00;
        color: #000;
    }
    
    .cookie-btn-reject {
        background: #ff0000;
        color: #fff;
    }
}