/**
 * Frontend Banner - Modern & Premium Styles (Glassmorphism)
 */

@media (prefers-color-scheme: dark) {

    .gdpr-banner-bar,
    .gdpr-glassmorphism {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Glassmorphism Effect */
.gdpr-glassmorphism {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

/* Banner - Bottom Bar Layout Only */
.gdpr-banner-bar {
    position: fixed;
    z-index: 99999;
    padding: 20px 24px;
    margin: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: gdpr-slide-up 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes gdpr-slide-up {
    from {
        bottom: -100px;
        opacity: 0;
    }

    to {
        bottom: 0;
        opacity: 1;
    }
}

.gdpr-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.gdpr-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.gdpr-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.gdpr-body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.gdpr-links {
    margin-top: 8px;
}

.gdpr-links a {
    font-size: 0.85rem;
    text-decoration: underline;
    margin-right: 12px;
    font-weight: 500;
}

.gdpr-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}


/* Modal Premium Styles */
.gdpr-modal-premium {
    border-radius: 20px !important;
    padding: 40px !important;
}

.gdpr-accordion .uk-accordion-title {
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.gdpr-accordion li {
    margin-top: 0 !important;
}

.gdpr-accordion .uk-accordion-content {
    padding: 15px 0;
}

.gdpr-cookie-table {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 10px;
}

.gdpr-cookie-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.gdpr-cookie-table td {
    font-size: 0.85rem;
}

/* GDPR Policy Container - Table Responsive Styles */
.gdpr-policy-container {
    overflow-x: hidden;
}

.gdpr-policy-container table {
    margin-bottom: 1rem;
}

.gdpr-policy-container table th {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.02);
}

/* UIKit Table Responsive Fixes for Frontend */
.gdpr-policy-container .uk-table-responsive {
    margin-bottom: 1rem;
}

/* Ensure tables are scrollable on mobile */
@media (max-width: 768px) {
    .gdpr-policy-container .uk-overflow-auto {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .gdpr-cookie-table th,
    .gdpr-cookie-table td {
        white-space: nowrap;
    }
}

/* Floating Widget */
.gdpr-floating-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 99998;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gdpr-floating-widget:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gdpr-floating-widget svg {
    width: 28px;
    height: 28px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .gdpr-floating-widget {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }

    .gdpr-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .gdpr-actions {
        width: 100%;
        gap: 8px;
        flex-direction: column;
    }

    .gdpr-actions button {
        width: 100%;
        margin-bottom: 0;
    }

    .gdpr-actions button:last-child {
        margin-bottom: 0;
    }
}