/* Cookie Consent Styles */
.cookie-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 10px;
    border-top: 3px solid var(--accent-color);
    overflow: hidden;
}

[data-theme="dark"] .cookie-container {
    background: rgba(30, 30, 30, 0.95);
    border-top: 3px solid var(--accent-color);
}

.cookie-container.active {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
}

.cookie-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: var(--accent-color);
    animation: cookieBounce 2s infinite;
}

@keyframes cookieBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.cookie-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.cookie-text {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.85rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-btn-accept {
    background-color: var(--accent-color);
    color: white;
    flex: 1;
    min-width: 80px;
}

.cookie-btn-accept:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.cookie-btn-settings {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.cookie-btn-settings:hover {
    background-color: rgba(0, 86, 179, 0.1);
}

.cookie-btn-decline {
    background-color: #f1f1f1;
    color: #666;
}

[data-theme="dark"] .cookie-btn-decline {
    background-color: #333;
    color: #ccc;
}

.cookie-btn-decline:hover {
    background-color: #e5e5e5;
}

[data-theme="dark"] .cookie-btn-decline:hover {
    background-color: #444;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-modal.active {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background-color: var(--bg-primary);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.active .cookie-settings-content {
    transform: scale(1);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .cookie-settings-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.cookie-settings-close:hover {
    color: var(--accent-color);
}

.cookie-settings-options {
    margin-bottom: 1.5rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .cookie-option {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.cookie-option-title.required::after {
    content: '(Required)';
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-left: 0.5rem;
    font-weight: normal;
}

.cookie-option-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-toggle-slider {
    background-color: var(--accent-color);
}

input:focus + .cookie-toggle-slider {
    box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .cookie-toggle-slider:before {
    transform: translateX(18px);
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Loading Animation */
.cookie-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #45b7af, var(--accent-color));
    background-size: 200% 100%;
    animation: loading 2s linear infinite;
    z-index: 1;
}

@keyframes loading {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-container {
        width: 300px;
        bottom: 10px;
        right: 10px;
    }
    
    .cookie-content {
        padding: 0.75rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .cookie-settings-content {
        padding: 1rem;
        width: 95%;
    }
}

/* Pulse Animation for Accept Button */
.pulse {
    position: relative;
}

.pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--accent-color);
    border-radius: 4px;
    z-index: -1;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}