/* AYNIX GDPR Plugin Styles */

/* Cookie Banner */
.aynix-gdpr-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.aynix-gdpr-banner.position-bottom {
    bottom: 0;
}

.aynix-gdpr-banner.position-top {
    top: 0;
}

.aynix-gdpr-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.aynix-gdpr-banner-text p {
    margin: 0 0 10px;
}

.aynix-gdpr-banner-text a {
    text-decoration: underline;
}

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

/* Buttons */
.aynix-gdpr-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.aynix-gdpr-btn-primary {
    background-color: #438ef9;
    color: #fff;
}

.aynix-gdpr-btn-primary:hover {
    background-color: #2c6edc;
    transform: translateY(-2px);
}

.aynix-gdpr-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.aynix-gdpr-btn-secondary:hover {
    background-color: #e0e0e0;
}

.aynix-gdpr-btn-reject {
    background-color: #6c757d;
    color: #fff;
}

.aynix-gdpr-btn-reject:hover {
    background-color: #5a6268;
}

/* Modal */
.aynix-gdpr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.aynix-gdpr-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aynix-gdpr-modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.aynix-gdpr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.aynix-gdpr-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.aynix-gdpr-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

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

.aynix-gdpr-modal-body {
    margin-bottom: 20px;
}

/* Cookie Categories */
.aynix-gdpr-cookie-category {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #438ef9;
}

.aynix-gdpr-cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.aynix-gdpr-cookie-category-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin: 0;
}

.aynix-gdpr-cookie-category-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Toggle Switch */
.aynix-gdpr-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

.aynix-gdpr-toggle input:checked + .aynix-gdpr-toggle-slider {
    background-color: #438ef9;
}

.aynix-gdpr-toggle input:checked + .aynix-gdpr-toggle-slider:before {
    transform: translateX(26px);
}

.aynix-gdpr-toggle input:disabled + .aynix-gdpr-toggle-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Modal Footer */
.aynix-gdpr-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .aynix-gdpr-banner-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .aynix-gdpr-banner-text {
        min-width: 100%;
    }
    
    .aynix-gdpr-banner-actions {
        width: 100%;
        justify-content: center;
    }
    
    .aynix-gdpr-btn {
        flex: 1;
        text-align: center;
    }
    
    .aynix-gdpr-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .aynix-gdpr-modal-header h2 {
        font-size: 20px;
    }
    
    .aynix-gdpr-modal-footer {
        flex-direction: column;
    }
    
    .aynix-gdpr-modal-footer .aynix-gdpr-btn {
        width: 100%;
    }
}
