/**
 * Cookies Banner Styles
 * Responsive and accessible cookies consent banner
 */

.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid #50c1cd;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px;
    font-family: "Muli", sans-serif;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookies-text {
    flex: 1;
}

.cookies-text h4 {
    margin: 0 0 8px 0;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 700;
}

.cookies-text p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.cookies-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookies-actions .btn {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cookies-actions .btn-primary {
    background: #50c1cd;
    border-color: #50c1cd;
    color: #fff;
}

.cookies-actions .btn-primary:hover {
    background: #232323;
    border-color: #232323;
    transform: translateY(-1px);
}

.cookies-actions .btn-outline-dark {
    background: transparent;
    border-color: #dee2e6;
    color: #6c757d;
}

.cookies-actions .btn-outline-dark:hover {
    background: #232323;
    border-color: #232323;
    color: #fff;
    transform: translateY(-1px);
}

.cookies-link {
    color: #50c1cd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookies-link:hover {
    color: #1a9c5f;
    text-decoration: underline;
}

.cookies-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.cookies-close:hover {
    color: #212529;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookies-banner {
        padding: 15px;
    }
    
    .cookies-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookies-text {
        text-align: center;
    }
    
    .cookies-text h4 {
        font-size: 1rem;
    }
    
    .cookies-text p {
        font-size: 13px;
    }
    
    .cookies-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cookies-actions .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .cookies-close {
        top: 8px;
        right: 10px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .cookies-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookies-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .cookies-link {
        text-align: center;
        margin-top: 5px;
    }
}

/* Animation for banner appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookies-banner {
    animation: slideUp 0.4s ease-out;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookies-banner {
        border-top-width: 4px;
        box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.2);
    }
    
    .cookies-actions .btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookies-banner {
        animation: none;
        transition: none;
    }
    
    .cookies-actions .btn {
        transition: none;
    }
    
    .cookies-actions .btn:hover {
        transform: none;
    }
}