/* GDPR Compliance Styles for Soltolaria */

/* Cookie Banner */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

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

.gdpr-banner.gdpr-banner-hiding {
    transform: translateY(100%);
}

.gdpr-banner-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.gdpr-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.gdpr-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.gdpr-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.gdpr-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gdpr-actions .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gdpr-actions .btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.gdpr-actions .btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.gdpr-actions .btn-text {
    background: transparent;
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
}

.gdpr-legal-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.gdpr-legal-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.gdpr-legal-links a:hover {
    color: var(--primary-color);
}

/* Preferences Modal */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.gdpr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.gdpr-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: var(--dark-bg);
}

.gdpr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.gdpr-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.gdpr-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.3s ease;
}

.gdpr-modal-close:hover {
    color: #333;
}

.gdpr-modal-body {
    padding: 0 24px;
}

.gdpr-intro {
    margin-bottom: 24px;
}

.gdpr-intro p {
    color: #666;
    line-height: 1.6;
}

/* Cookie Categories */
.gdpr-cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gdpr-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.gdpr-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.gdpr-category-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
}

.gdpr-always-active {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.gdpr-cookie-count {
    color: #666;
    font-size: 0.85rem;
}

/* Toggle Switch */
.gdpr-toggle {
    position: relative;
}

.gdpr-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-label:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="checkbox"]:checked + .toggle-label {
    background-color: var(--primary-color);
}

input[type="checkbox"]:checked + .toggle-label:before {
    transform: translateX(26px);
}

input[type="checkbox"]:disabled + .toggle-label {
    opacity: 0.6;
    cursor: not-allowed;
}

.gdpr-category-description {
    padding: 16px 20px;
}

.gdpr-category-description p {
    margin: 0 0 12px 0;
    color: #666;
    line-height: 1.5;
}

.gdpr-category-description details {
    margin-top: 12px;
}

.gdpr-category-description summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.gdpr-category-description ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.gdpr-category-description li {
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: #666;
}

.gdpr-category-description strong {
    color: #333;
}

/* Modal Footer */
.gdpr-modal-footer {
    padding: 20px 24px 24px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.gdpr-data-rights {
    flex: 1;
}

.gdpr-data-rights p {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.gdpr-data-rights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gdpr-data-rights li {
    margin-bottom: 4px;
}

.gdpr-data-rights a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.gdpr-data-rights a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.gdpr-modal-actions .btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gdpr-modal-actions .btn-primary {
    background: var(--primary-color);
    color: white;
}

.gdpr-modal-actions .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* Privacy Control Float */
.privacy-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.privacy-control-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.privacy-control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.privacy-control-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 16px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.privacy-control-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.privacy-control-menu h4 {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: var(--dark-bg);
}

.privacy-control-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.privacy-control-menu li {
    margin-bottom: 8px;
}

.privacy-control-menu a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.privacy-control-menu a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gdpr-banner-content {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .gdpr-actions {
        justify-content: center;
    }
    
    .gdpr-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .gdpr-modal-header {
        padding: 16px 16px 0 16px;
    }
    
    .gdpr-modal-body {
        padding: 0 16px;
    }
    
    .gdpr-modal-footer {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .gdpr-modal-actions {
        flex-direction: column;
    }
    
    .gdpr-legal-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .privacy-control {
        bottom: 80px;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10002;
    animation: slideInRight 0.3s ease;
}

.notification-success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}