/**
 * Privacy Notice Styles (תיקון 13)
 * Styles for cookie consent banner and privacy policy notice
 */

.privacy-notice-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #0d9488, #0891b2);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    direction: rtl;
}

.privacy-notice-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .privacy-notice-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.privacy-notice-text {
    flex: 1;
}

.privacy-notice-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.privacy-notice-description {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.privacy-notice-rights {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.privacy-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.privacy-link:hover {
    text-decoration: none;
}

.privacy-notice-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 200px;
}

@media (min-width: 768px) {
    .privacy-notice-actions {
        flex-direction: row;
        min-width: auto;
    }
}

.btn-privacy-accept,
.btn-privacy-reject,
.btn-privacy-customize {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-privacy-accept {
    background: white;
    color: #0d9488;
}

.btn-privacy-accept:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-privacy-reject {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-privacy-reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-privacy-customize {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-privacy-customize:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    direction: rtl;
}

.cookie-modal.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cookie-modal.active .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-modal-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.cookie-category-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.cookie-category-info p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Cookie Switch Toggle */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #0d9488;
}

input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.btn-privacy-save,
.btn-privacy-accept-all {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-privacy-save {
    background: #0d9488;
    color: white;
}

.btn-privacy-save:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(13, 148, 136, 0.3);
}

.btn-privacy-accept-all {
    background: #0891b2;
    color: white;
}

.btn-privacy-accept-all:hover {
    background: #0e7490;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(8, 145, 178, 0.3);
}

@media (max-width: 640px) {
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .btn-privacy-save,
    .btn-privacy-accept-all {
        width: 100%;
    }
}
