/* Cookie Banner Styles */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    width: calc(100% - 40px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: 'Inter', sans-serif;
}

#cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.cookie-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.cookie-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.cookie-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.cookie-btn.accept {
    background: #007bff;
    color: white;
}

.cookie-btn.accept:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.cookie-btn.decline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.cookie-btn.decline:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

/* Dark Mode Support */
html.dark-mode #cookie-banner {
    background: rgba(20, 20, 20, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html.dark-mode .cookie-title {
    color: #fff;
}

html.dark-mode .cookie-text {
    color: #aaa;
}

html.dark-mode .cookie-text a {
    color: #4dabf7;
}

html.dark-mode .cookie-text a:hover {
    color: #74c0fc;
}

html.dark-mode .cookie-btn.decline {
    border-color: #444;
    color: #aaa;
}

html.dark-mode .cookie-btn.decline:hover {
    background: #333;
    border-color: #555;
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    #cookie-banner {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
    }
    
    .cookie-actions {
        flex-direction: column-reverse; /* Accept on top on mobile usually, or side by side if space permits. Column is safer for fat fingers */
    }
}
