/* Modern Cookie Banner Styles */

/* Main Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
    max-width: 24rem;
    z-index: 1000;
    animation: dropIn 0.5s ease-out;
    display: block;
}

@media (min-width: 640px) {
    .cookie-banner {
        right: 0.5rem;
        bottom: 0.5rem;
        width: 24rem;
    }
}

/* Drop-in animation */
@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(1rem) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Purple glow effect */
.cookie-banner-glow {
    position: absolute;
    inset: 0;
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 1.5rem;
    filter: blur(2rem);
    transform: scale(1.1);
    z-index: -1;
}

/* Main content container */
.cookie-banner-content {
    background: var(--glass-bg);
    backdrop-filter: blur(2rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
}

/* Gradient header */
.cookie-banner-header {
    height: 4px;
    background: linear-gradient(to right, var(--primary), rgba(var(--primary-rgb), 0.8), rgba(var(--primary-rgb), 0.6));
}

/* Banner body */
.cookie-banner-body {
    padding: 1rem;
}

/* Brand header section */
.cookie-banner-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Brand icon */
.brand-icon {
    position: relative;
    cursor: pointer;
}

.brand-icon-bg {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
}

.brand-icon:hover .brand-icon-bg {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.2);
}

.brand-logo {
    width: 1.75rem;
    height: 1.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-pulse {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1rem;
    height: 1rem;
    background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.8));
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

.brand-overlay {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

/* Brand text */
.brand-text {
    flex: 1;
}

.brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 1.125rem;
    color: white;
    margin-bottom: 0.25rem;
    background: linear-gradient(to right, white, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Close button */
.close-button {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.close-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.close-button:hover .close-icon {
    transform: rotate(90deg);
}

/* Content text */
.cookie-banner-content-text {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.content-main {
    color: white;
    font-size: 0.75rem;
    line-height: 1.6;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    margin: 0;
}

.content-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.6;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    margin: 0;
}

/* Actions section */
.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Action buttons */
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 0.875rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-button.accept-all {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.action-button.accept-all:hover {
    background: white;
    color: var(--dark);
}

.action-button.decline-all {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.action-button.decline-all:hover {
    background: white;
    color: var(--dark);
}

.action-button.customize {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.625rem 1rem;
}

.action-button.customize:hover {
    background: white;
    color: var(--dark);
}

.action-icon {
    width: 1rem;
    height: 1rem;
}

.action-button.decline-all .action-icon {
    width: 0.875rem;
    height: 0.875rem;
}

.action-button.customize .action-icon {
    width: 0.875rem;
    height: 0.875rem;
}

/* Footer section */
.cookie-banner-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trust-badge {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
}

.trust-icon {
    width: 0.875rem;
    height: 0.875rem;
    opacity: 0.7;
}

.trust-text {
    font-size: 0.6875rem;
}

.trust-subtext {
    font-size: 0.625rem;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.footer-link {
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
}

.footer-link.primary {
    color: var(--primary);
    text-decoration: underline;
}

.footer-link.primary:hover {
    color: rgba(var(--primary-rgb), 0.8);
}

.footer-link.secondary {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.footer-link.secondary:hover {
    color: white;
}

/* Responsive design */
@media (max-width: 640px) {
    .cookie-banner {
        bottom: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        width: calc(100% - 1rem);
        max-width: none;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Focus states for accessibility */
.action-button:focus,
.close-button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.footer-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 0.25rem;
} 