/* GDPR Cookie Consent Styles */

/* Cookie Banner */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary);
    box-shadow: 0 -5px 30px rgba(255, 0, 0, 0.2);
    z-index: 9999;
    padding: 1.5rem;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gdpr-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.gdpr-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.gdpr-icon {
    font-size: 2.5rem;
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--primary);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 20px var(--primary);
    }
}

.gdpr-text {
    flex: 1;
    min-width: 300px;
}

.gdpr-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gdpr-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.gdpr-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gdpr-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.gdpr-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.gdpr-link:hover::after {
    width: 100%;
}

.gdpr-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gdpr-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.gdpr-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.gdpr-btn:hover::before {
    left: 0;
}

.gdpr-btn:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.gdpr-btn-accept {
    background: var(--primary);
    color: #000;
}

.gdpr-btn-accept:hover {
    background: #ff3333;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.7);
}

.gdpr-btn-reject {
    border-color: #666;
    color: #999;
}

.gdpr-btn-reject::before {
    background: #666;
}

.gdpr-btn-reject:hover {
    border-color: #999;
    color: #fff;
}

/* Modal */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gdpr-modal.visible {
    opacity: 1;
}

.gdpr-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
    border: 2px solid var(--primary);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(255, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gdpr-modal.visible .gdpr-modal-content {
    transform: scale(1);
}

.gdpr-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gdpr-modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gdpr-modal-close {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.gdpr-modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.gdpr-modal-body {
    padding: 1.5rem;
}

.gdpr-option {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.gdpr-option:hover {
    background: rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.4);
}

.gdpr-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.gdpr-option-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gdpr-option-info h3 i {
    color: var(--primary);
}

.gdpr-option-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Toggle Switch */
.gdpr-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}

.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: #333;
    transition: 0.3s;
    border-radius: 30px;
    border: 1px solid #555;
}

.gdpr-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #666;
    transition: 0.3s;
    border-radius: 50%;
}

.gdpr-toggle input:checked + .gdpr-toggle-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

.gdpr-toggle input:checked + .gdpr-toggle-slider:before {
    transform: translateX(30px);
    background-color: #fff;
}

.gdpr-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gdpr-toggle.disabled .gdpr-toggle-slider {
    cursor: not-allowed;
}

.gdpr-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 0, 0, 0.3);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.gdpr-btn-secondary {
    background: transparent;
    border-color: #666;
    color: var(--text);
}

.gdpr-btn-secondary::before {
    background: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gdpr-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .gdpr-icon {
        font-size: 2rem;
    }

    .gdpr-text {
        text-align: center;
    }

    .gdpr-links {
        justify-content: center;
    }

    .gdpr-actions {
        width: 100%;
        flex-direction: column;
    }

    .gdpr-btn {
        width: 100%;
        justify-content: center;
    }

    .gdpr-modal-content {
        margin: 1rem;
    }

    .gdpr-modal-header h2 {
        font-size: 1.2rem;
    }

    .gdpr-option-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gdpr-toggle {
        align-self: flex-end;
    }

    .gdpr-modal-footer {
        flex-direction: column;
    }

    .gdpr-modal-footer .gdpr-btn {
        width: 100%;
    }
}

/* Light Theme Adjustments */
[data-theme="light"] .gdpr-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.98) 100%);
    border-top-color: var(--primary);
}

[data-theme="light"] .gdpr-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.98) 100%);
}

[data-theme="light"] .gdpr-option {
    background: rgba(255, 0, 0, 0.03);
}

[data-theme="light"] .gdpr-option:hover {
    background: rgba(255, 0, 0, 0.06);
}

[data-theme="light"] .gdpr-toggle-slider {
    background-color: #ddd;
    border-color: #ccc;
}

[data-theme="light"] .gdpr-toggle-slider:before {
    background-color: #999;
}

/* Scrollbar for modal */
.gdpr-modal-content::-webkit-scrollbar {
    width: 8px;
}

.gdpr-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.gdpr-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.gdpr-modal-content::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
}
