/**
 * Fabcrush GDPR Compliance Styles
 * 
 * Styles for cookie consent banner, preferences modal, and data rights forms
 */

/* ====== COOKIE CONSENT BANNER ====== */
.fabcrush-gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9ff;
    border-top: 3px solid #667eea;
    box-shadow: 0 -5px 20px rgba(102, 126, 234, 0.15);
    z-index: 999999;
    padding: 20px;
    animation: slideUp 0.3s ease-out;
}

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

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

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

.gdpr-banner-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333 !important;
    line-height: 1.3;
}

.gdpr-banner-description {
    margin: 0;
    font-size: 14px;
    color: #666 !important;
    line-height: 1.5;
}

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

.gdpr-banner-links {
    width: 100%;
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
}

.gdpr-banner-links a {
    color: #667eea;
    text-decoration: none;
}

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

.gdpr-link-separator {
    margin: 0 10px;
    color: #ccc;
}

/* ====== GDPR BUTTONS ====== */
.gdpr-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.gdpr-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gdpr-btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.gdpr-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.gdpr-btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.gdpr-btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.gdpr-btn-outline:hover {
    background: #667eea;
    color: white;
}

/* ====== PREFERENCES MODAL ====== */
.fabcrush-gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gdpr-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gdpr-modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gdpr-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.gdpr-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

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

.gdpr-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    background: white;
}

.gdpr-consent-category {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #f8f9ff !important;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.05);
}

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

.gdpr-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.gdpr-category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #333 !important;
    margin: 0;
}

.gdpr-category-label input[disabled] {
    cursor: not-allowed;
}

.gdpr-category-checkbox {
    margin-right: 10px;
    transform: scale(1.2);
}

.gdpr-category-description {
    margin: 0;
    font-size: 14px;
    color: #666 !important;
    line-height: 1.5;
    padding-left: 30px;
}

.gdpr-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: white;
}

/* ====== COOKIE SETTINGS BUTTON ====== */
.fabcrush-cookie-settings {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999998;
}

.cookie-settings-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* ====== DATA RIGHTS FORMS ====== */
.gdpr-data-rights-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
}

.gdpr-data-rights-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.gdpr-data-rights-description {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.gdpr-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gdpr-right-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.gdpr-right-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gdpr-right-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.gdpr-right-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.gdpr-right-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.gdpr-form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.gdpr-form-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.gdpr-form-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.gdpr-form-group {
    margin-bottom: 20px;
}

.gdpr-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.gdpr-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.gdpr-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gdpr-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.gdpr-form-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gdpr-form-submit:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.gdpr-form-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ====== NOTIFICATIONS ====== */
.gdpr-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000001;
    animation: notificationSlideIn 0.3s ease-out;
}

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

.gdpr-notification.success {
    border-left: 4px solid #28a745;
}

.gdpr-notification.error {
    border-left: 4px solid #dc3545;
}

.gdpr-notification.info {
    border-left: 4px solid #17a2b8;
}

.gdpr-notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.gdpr-notification-message {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.gdpr-notification-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
    .gdpr-banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .gdpr-banner-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .gdpr-btn {
        flex: 1;
        min-width: auto;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .gdpr-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .gdpr-modal-header,
    .gdpr-modal-body,
    .gdpr-modal-footer {
        padding: 20px;
    }
    
    .gdpr-modal-footer {
        flex-direction: column;
    }
    
    .gdpr-modal-footer .gdpr-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .gdpr-modal-footer .gdpr-btn:last-child {
        margin-bottom: 0;
    }
    
    .gdpr-rights-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-settings-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .gdpr-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .fabcrush-gdpr-banner {
        padding: 15px;
    }
    
    .gdpr-banner-title {
        font-size: 16px;
    }
    
    .gdpr-banner-description {
        font-size: 13px;
    }
    
    .gdpr-banner-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .gdpr-btn {
        width: 100%;
        padding: 12px;
    }
    
    .gdpr-modal-header {
        padding: 15px;
    }
    
    .gdpr-modal-title {
        font-size: 18px;
    }
    
    .gdpr-consent-category {
        padding: 15px;
    }
    
    .gdpr-form-section {
        padding: 20px;
    }
}

/* ====== DARK MODE REMOVED - LIGHT MODE ONLY ====== */

/* ====== ACCESSIBILITY ====== */
.gdpr-btn:focus,
.gdpr-form-input:focus,
.gdpr-category-checkbox:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.gdpr-btn:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gdpr-btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .gdpr-btn-outline {
        border-width: 3px;
    }
    
    .gdpr-modal-content {
        border: 3px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fabcrush-gdpr-banner,
    .gdpr-modal-content,
    .gdpr-notification {
        animation: none;
    }
    
    .gdpr-btn,
    .gdpr-right-card,
    .cookie-settings-btn {
        transition: none;
    }
}

/* Print styles */
@media print {
    .fabcrush-gdpr-banner,
    .fabcrush-gdpr-modal,
    .fabcrush-cookie-settings {
        display: none !important;
    }
}
