/* Cookie Consent Styles
-------------------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    color: #f8fafc;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-header h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.25rem;
}

.cookie-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.cookie-close:hover {
    color: #f8fafc;
}

.cookie-consent p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.cookie-options {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    position: relative;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 1.125rem;
    height: 1.125rem;
}

.cookie-option label {
    cursor: pointer;
    margin-right: 0.5rem;
}

.cookie-tooltip {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-color: #475569;
    color: #f8fafc;
    border-radius: 50%;
    text-align: center;
    line-height: 1rem;
    font-size: 0.75rem;
    cursor: help;
    position: relative;
}

.cookie-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    color: #f8fafc;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.cookie-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
    transform: translateX(-50%) rotate(180deg);
    z-index: 11;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cookie-actions button {
    flex: 1;
    min-width: 150px;
}

.cookie-footer {
    text-align: center;
}

.cookie-footer a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.cookie-footer a:hover {
    color: #f8fafc;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions button {
        width: 100%;
    }
    
    .cookie-tooltip:hover::after {
        width: 200px;
        white-space: normal;
    }
}

.cookie-consent.visible {
    display: block;
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

.cookie-consent.hiding {
    animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Cookie consent banner at bottom of page */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(30, 41, 59, 0.95);
    color: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 300px;
    z-index: 999;
    backdrop-filter: blur(5px);
    display: none;
}

.cookie-banner.visible {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.875rem;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cookie-banner-buttons button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.cookie-banner-buttons .settings-btn {
    background-color: transparent;
    border: 1px solid #60a5fa;
    color: #60a5fa;
}

.cookie-banner-buttons .settings-btn:hover {
    background-color: rgba(96, 165, 250, 0.1);
}

.cookie-banner-buttons .accept-btn {
    background-color: #2563eb;
    color: #f8fafc;
}

.cookie-banner-buttons .accept-btn:hover {
    background-color: #1d4ed8;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
