/**
 * GDPR Cookie Consent Styles
 * Responsive design for Hungarian website
 * Compatible with Bootstrap 5.3.2
 */

/* Consent Banner */
.gdpr-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

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

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

.gdpr-consent-icon {
    font-size: 2.5rem;
    color: #f39c12;
    flex-shrink: 0;
}

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

.gdpr-consent-text h5 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.gdpr-consent-text p {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.gdpr-consent-links {
    font-size: 0.85rem;
}

.gdpr-consent-links a {
    color: #bdc3c7;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.gdpr-consent-links a:hover {
    color: #ecf0f1;
}

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

.gdpr-consent-actions .btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gdpr-consent-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gdpr-consent-actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Settings Button (Floating) */
.gdpr-settings-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.gdpr-settings-button .btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #AB7442;
}

.gdpr-settings-button .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* Modal Enhancements */
.modal-content .gdpr-category {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.modal-content .gdpr-category:hover {
    background-color: #f1f3f4;
}

.modal-content .form-check-input:checked {
    background-color: #AB7442;
    border-color: #AB7442;
}

.modal-content .form-check-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modal-content h6 {
    color: #495057;
    font-weight: 600;
}

.modal-content .text-muted {
    color: #6c757d !important;
}

.modal-content .alert {
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
}

.modal-content .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gdpr-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .gdpr-consent-icon {
        font-size: 2rem;
    }
    
    .gdpr-consent-text {
        min-width: auto;
    }
    
    .gdpr-consent-actions {
        justify-content: center;
        width: 100%;
    }
    
    .gdpr-consent-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .gdpr-settings-button {
        bottom: 100px; /* Above consent banner */
        right: 15px;
    }
    
    .gdpr-settings-button .btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .gdpr-consent-banner {
        padding: 15px 0;
    }
    
    .gdpr-consent-content {
        padding: 0 10px;
        gap: 12px;
    }
    
    .gdpr-consent-text h5 {
        font-size: 1.1rem;
    }
    
    .gdpr-consent-text p {
        font-size: 0.9rem;
    }
    
    .gdpr-consent-actions {
        gap: 6px;
    }
    
    .gdpr-consent-actions .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .modal-dialog.modal-xl {
        margin: 10px;
        max-width: none;
    }
    
    .modal-body {
        max-height: 60vh !important;
        padding: 15px;
    }
}

/* Animation for banner appearance */
@keyframes slideUpFadeIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gdpr-consent-banner.show {
    animation: slideUpFadeIn 0.4s ease-out;
}

/* Custom checkbox styling for better visibility */
.form-check-input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.1em;
    vertical-align: top;
    border: 2px solid #dee2e6;
    border-radius: 0.25em;
    transition: all 0.15s ease-in-out;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #AB7442;
    border-color: #AB7442;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input[type="checkbox"]:disabled {
    opacity: 0.5;
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* Table styling for cookie policy */
.table-responsive .table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table td, .table th {
    padding: 12px;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

/* Dark mode support (if implemented later) */
@media (prefers-color-scheme: dark) {
    .gdpr-consent-banner {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
        border-top: 1px solid #444;
    }
    
    .modal-content .gdpr-category {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .modal-content .gdpr-category:hover {
        background-color: #374151;
    }
}

/* Accessibility improvements */
.gdpr-consent-banner:focus-within {
    outline: 2px solid #AB7442;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #AB7442;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gdpr-consent-banner {
        background: #000;
        border-top: 3px solid #fff;
    }
    
    .gdpr-consent-actions .btn {
        border-width: 2px;
    }
    
    .form-check-input {
        border-width: 3px;
    }
}