/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    animation: cookieSlideIn 0.5s ease-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-banner .container {
    padding: 0;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-text a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: #764ba2;
}

.cookie-accept {
    flex-shrink: 0;
    background: rgba(102, 126, 234, 0.9);
    border: 1px solid rgba(102, 126, 234, 1);
    padding: 8px 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-accept:hover {
    background: rgba(118, 75, 162, 0.9);
    border-color: rgba(118, 75, 162, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cookie-accept:active {
    transform: translateY(0);
}

.cookie-accept .accept-text {
    color: #ffffff;
}

/* Animations */
@keyframes cookieSlideIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive adjustments for mobile */
@media (max-width: 576px) {
    .cookie-consent-content {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
    }

    .cookie-text {
        font-size: 13px;
        line-height: 1.5;
        flex-basis: 100%;
    }

    .cookie-accept {
        padding: 8px 0;
        font-size: 13px;
        width: 100%;
        flex-basis: 100%;
    }

    .cookie-accept .accept-text {
        font-size: 13px;
    }
}

/* Adjust body padding to account for cookie banner */
body.has-cookie-consent {
    padding-bottom: 80px;
}

/* When both cookie consent and disclaimer are present (project pages on mobile) */
@media (max-width: 767px) {
    body.has-cookie-consent.has-disclaimer {
        padding-bottom: 160px;
    }

    /* Adjust cookie consent position when disclaimer is present on mobile */
    body.has-disclaimer .cookie-consent-banner {
        bottom: 80px;
    }
}

@media (min-width: 768px) {
    /* On desktop, disclaimer is sticky at top, so only cookie padding needed */
    body.has-cookie-consent.has-disclaimer {
        padding-bottom: 80px;
    }
}

/* Print styles - hide cookie consent when printing */
@media print {
    .cookie-consent-banner {
        display: none !important;
    }
}
