/* Global Styles */
:root {
    --primary-color: #4AAF46;       /* Green for primary buttons, borders */
    --secondary-color: #6F6F6E;     /* Gray for secondary text/buttons */
    --light-color: #FFFFFF;         /* White background or text */
    --dark-color: #f5f5f5;          /* Dark text color */
    --gray-light: #F8F9FA;          /* Light gray background or borders */
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--light-color);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    max-width: 480px;
    width: 90%;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 0;
    transition: var(--transition);
}

.cookie-banner.banner-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookie-banner p {
    margin: 0 0 20px 0;
    color: var(--dark-color);
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Enhanced Buttons with Professional Styling */
.cookie-buttons button {
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    letter-spacing: 0.5px;
    min-width: 120px;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Subtle shine overlay */
.cookie-buttons button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

/* Hover shine animation */
.cookie-buttons button:hover::before {
    left: 100%;
}

.cookie-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-buttons button:active {
    transform: translateY(0);
}

/* Accept Button */
.btn-accept {
    background: linear-gradient(135deg, var(--primary-color), #2e7d32);
    color: var(--light-color);
}

.btn-accept:hover {
    background: linear-gradient(135deg, #3d9a39, #276b25);
}

/* Reject Button */
.btn-reject {
    background: linear-gradient(135deg, var(--gray-light), #e9ecef);
    color: var(--secondary-color);
    border: 1px solid #dee2e6;
}

.btn-reject:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: var(--dark-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(20px);
        max-width: none;
        width: auto;
        margin: 0;
    }
    
    .cookie-banner.banner-visible {
        transform: translateX(0) translateY(0);
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        min-width: auto;
        width: 100%;
    }
}

/* Backdrop overlay */
.cookie-banner::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-banner.banner-visible::after {
    opacity: 1;
}