/* Modern GDPR Cookie Consent Banner */
:root {
    --gdpr-primary: #2c3e50;
    --gdpr-accent: #3498db;
    --gdpr-success: #27ae60;
    --gdpr-text: #ffffff;
    --gdpr-shadow: rgba(0, 0, 0, 0.2);
}

/* Main Cookie Banner */
#gdpr-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--gdpr-primary) 0%, #34495e 100%);
    color: var(--gdpr-text);
    padding: 25px 20px;
    box-shadow: 0 -4px 20px var(--gdpr-shadow);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    animation: slideUp 0.5s ease-out;
    border-top: 3px solid var(--gdpr-accent);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gdpr-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.gdpr-content {
    flex: 1;
    min-width: 300px;
}

.gdpr-content h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--gdpr-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gdpr-content h4::before {
    content: "🍪";
    font-size: 24px;
}

.gdpr-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

.gdpr-content a {
    color: var(--gdpr-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.gdpr-content a:hover {
    color: #5dade2;
}

.gdpr-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.gdpr-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.gdpr-btn-accept {
    background: var(--gdpr-success);
    color: white;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.gdpr-btn-accept:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.gdpr-btn-customize {
    background: transparent;
    color: var(--gdpr-text);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gdpr-btn-customize:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.gdpr-btn-reject {
    background: transparent;
    color: var(--gdpr-text);
    border: 2px solid rgba(231, 76, 60, 0.5);
}

.gdpr-btn-reject:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.8);
}

/* Cookie Preferences Modal */
#gdpr-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#gdpr-cookie-modal.active {
    display: flex;
}

.gdpr-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px var(--gdpr-shadow);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gdpr-modal-header {
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--gdpr-primary) 0%, #34495e 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.gdpr-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.gdpr-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.gdpr-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gdpr-modal-body {
    padding: 25px;
    color: #333;
}

.gdpr-cookie-type {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gdpr-cookie-type:hover {
    border-color: var(--gdpr-accent);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.gdpr-cookie-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gdpr-cookie-type h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gdpr-primary);
}

.gdpr-cookie-type p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.gdpr-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.gdpr-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gdpr-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.gdpr-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.gdpr-toggle input:checked + .gdpr-toggle-slider {
    background-color: var(--gdpr-success);
}

.gdpr-toggle input:checked + .gdpr-toggle-slider:before {
    transform: translateX(24px);
}

.gdpr-toggle input:disabled + .gdpr-toggle-slider {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.gdpr-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gdpr-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gdpr-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .gdpr-btn {
        width: 100%;
        text-align: center;
    }
    
    #gdpr-cookie-banner {
        padding: 20px 15px;
    }
    
    .gdpr-content h4 {
        font-size: 18px;
    }
    
    .gdpr-content p {
        font-size: 13px;
    }
}

/* Accessibility */
.gdpr-btn:focus,
.gdpr-toggle input:focus + .gdpr-toggle-slider {
    outline: 3px solid var(--gdpr-accent);
    outline-offset: 2px;
}

/* Hidden state */
.gdpr-hidden {
    display: none !important;
}

/* Region indicator (for testing) */
.gdpr-region-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--gdpr-accent);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 999998;
    display: none;
}

.gdpr-region-indicator.show {
    display: block;
}

