/**
 * GDPR Consent Banner & Modal Styles
 */

/* ============================================
   GDPR BANNER
   ============================================ */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(17, 15, 12, 0.98) 100%);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease;
    border-top: 3px solid #4caf50;
}

.gdpr-banner.gdpr-banner-visible {
    transform: translateY(0);
    opacity: 1;
}

.gdpr-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.gdpr-banner-text {
    flex: 1;
    min-width: 280px;
}

.gdpr-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #4caf50;
}

.gdpr-description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e0e0e0;
}

.gdpr-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================
   GDPR BUTTONS
   ============================================ */
.gdpr-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.gdpr-btn-primary {
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.gdpr-btn-primary:hover {
    background: #4caf50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    border-color: #4caf50;
}

.gdpr-btn-secondary {
    background: rgba(26, 26, 26, 0.6);
    color: #ffffff;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.gdpr-btn-secondary:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.6);
}

.gdpr-btn-link {
    background: transparent;
    color: #4caf50;
    padding: 0.75rem 1rem;
    text-decoration: underline;
}

.gdpr-btn-link:hover {
    color: rgba(76, 175, 80, 0.8);
}

/* ============================================
   GDPR MODAL
   ============================================ */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gdpr-modal.gdpr-modal-visible {
    opacity: 1;
    visibility: visible;
}

.gdpr-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.gdpr-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(17, 15, 12, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(76, 175, 80, 0.3);
    display: flex;
    flex-direction: column;
}

.gdpr-modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid rgba(76, 175, 80, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gdpr-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #4caf50;
}

.gdpr-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.gdpr-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gdpr-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.gdpr-cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.gdpr-cookie-category:last-child {
    margin-bottom: 0;
}

.gdpr-cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.gdpr-cookie-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.gdpr-cookie-description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #b0b0b0;
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */
.gdpr-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.gdpr-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gdpr-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.3s;
    border-radius: 26px;
}

.gdpr-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.gdpr-switch input:checked + .gdpr-slider {
    background: rgba(76, 175, 80, 0.9);
}

.gdpr-switch input:checked + .gdpr-slider:before {
    transform: translateX(24px);
}

.gdpr-switch-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gdpr-switch-disabled .gdpr-slider {
    cursor: not-allowed;
    background: rgba(76, 175, 80, 0.9);
}

.gdpr-modal-footer {
    padding: 1.5rem;
    border-top: 2px solid rgba(76, 175, 80, 0.2);
    display: flex;
    justify-content: flex-end;
}

/* ============================================
   COOKIE SETTINGS LINK (FOOTER)
   ============================================ */
.gdpr-settings-link {
    background: transparent;
    border: none;
    color: #4caf50;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    margin-top: 1rem;
    text-decoration: underline;
    transition: color 0.2s ease;
    font-family: inherit;
}

.gdpr-settings-link:hover {
    color: rgba(76, 175, 80, 0.8);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .gdpr-banner {
        padding: 1rem;
    }
    
    .gdpr-banner-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gdpr-banner-text {
        text-align: center;
    }
    
    .gdpr-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .gdpr-btn {
        width: 100%;
        text-align: center;
    }
    
    .gdpr-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .gdpr-modal-header,
    .gdpr-modal-body,
    .gdpr-modal-footer {
        padding: 1rem;
    }
    
    .gdpr-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .gdpr-cookie-category {
        padding: 0.75rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.gdpr-btn:focus,
.gdpr-modal-close:focus,
.gdpr-switch input:focus + .gdpr-slider,
.gdpr-settings-link:focus {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .gdpr-banner,
    .gdpr-modal,
    .gdpr-btn,
    .gdpr-slider,
    .gdpr-slider:before {
        transition: none;
    }
}
