﻿/* PECR Compliant Cookie Banner Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    font-family: system-ui, -apple-system, sans-serif;
}

    .cookie-consent-banner.show {
        transform: translateY(0);
    }

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-consent-text h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-link {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    white-space: nowrap;
}

.btn-cookie-settings {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

    .btn-cookie-settings:hover {
        background: #fff;
        color: #2c3e50;
    }

.btn-cookie-reject {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

    .btn-cookie-reject:hover {
        background: #c82333;
        border-color: #bd2130;
    }

.btn-cookie-accept {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

    .btn-cookie-accept:hover {
        background: #218838;
        border-color: #1e7e34;
    }

.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10001;
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.cookie-notification-success {
    border-left: 4px solid #28a745;
}

.cookie-notification-info {
    border-left: 4px solid #17a2b8;
}

.cookie-notification button {
    background: none;
    border: none;
    float: right;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-cookie {
        flex: 1;
        min-width: 80px;
    }
}

/* Analytics status indicator */
.analytics-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

    .analytics-status.enabled {
        background-color: #28a745;
    }

    .analytics-status.disabled {
        background-color: #dc3545;
    }
