/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    background: var(--primary-bg);
    box-shadow: 0 -2px 20px var(--shadow);
    z-index: 999999;
    padding: 20px;
    border-top: 3px solid var(--accent-color);
    animation: slideUp 0.5s ease-out;
}

.cookie-consent-banner.position-bottom {
    bottom: 0;
}

.cookie-consent-banner.position-top {
    top: 0;
    border-top: none;
    border-bottom: 3px solid var(--accent-color);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-consent-message {
    flex: 1;
    min-width: 300px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--accent-color);
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: var(--signature-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.cookie-btn-secondary {
    background: var(--secondary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-secondary:hover {
    background: var(--primary-bg);
    border-color: var(--accent-color);
}

.cookie-btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 15px;
}

.cookie-btn-text:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.cookie-privacy-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 15px;
    white-space: nowrap;
}

.cookie-privacy-link:hover {
    text-decoration: underline;
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-modal-content {
    background: var(--primary-bg);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: var(--secondary-bg);
    color: var(--text-primary);
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-modal-body > p {
    margin-bottom: 25px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cookie-category-header {
    margin-bottom: 10px;
}

.cookie-category-header label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
}

.cookie-category-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-category-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-always-active {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: normal;
}

.cookie-category-description {
    margin: 0;
    padding-left: 30px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .cookie-consent-message {
        min-width: auto;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn,
    .cookie-privacy-link {
        width: 100%;
        text-align: center;
    }
    
    .cookie-modal-content {
        margin: 10px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-message {
        font-size: 13px;
    }
    
    .cookie-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}
