/**
 * GDPR Cookie Consent Banner - Stylesheet
 * Version: 1.0
 * RTL Ready (Hebrew)
 */

/* ========== BANNER CONTAINER ========== */
#gdpr-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.gdpr-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
}

/* ========== BANNER TEXT ========== */
.gdpr-banner-text h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.gdpr-banner-text p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
}

/* ========== BUTTONS ========== */
.gdpr-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.gdpr-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* כפתור "אישור הכל" - כחול */
.gdpr-accept-all {
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #007bff;
}

.gdpr-accept-all:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* כפתור "דחייה" - שחור */
.gdpr-deny-all {
    background-color: transparent;
    color: #000000;
    border: 2px solid transparent;
}

.gdpr-deny-all:hover {
    background-color: #f5f5f5;
}

/* כפתור "הגדרות" - שחור */
.gdpr-settings {
    background-color: transparent;
    color: #000000;
    border: 2px solid transparent;
}

.gdpr-settings:hover {
    background-color: #f5f5f5;
}

/* כפתור "שמור הגדרות" - שחור */
.gdpr-save-settings {
    background-color: transparent;
    color: #000000;
    border: 2px solid transparent;
    width: 100%;
    margin-top: 15px;
}

.gdpr-save-settings:hover {
    background-color: #f5f5f5;
}

/* ========== POLICY LINKS ========== */
.gdpr-policy-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.gdpr-policy-links a {
    color: #007bff;
    text-decoration: underline;
    font-size: 13px;
    transition: color 0.2s ease;
}

.gdpr-policy-links a:hover {
    color: #0056b3;
    text-decoration: none;
}

.gdpr-policy-links a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========== SETTINGS PANEL ========== */
.gdpr-settings-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.gdpr-settings-panel h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

/* ========== TOGGLE ITEMS ========== */
.gdpr-toggle-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    margin: 0;
}

.gdpr-toggle-item:last-of-type {
    border-bottom: none;
}

.gdpr-toggle-item input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #007bff;
}

.gdpr-toggle-item input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.gdpr-toggle-label {
    flex: 1;
}

.gdpr-toggle-label strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 3px;
}

.gdpr-toggle-label small {
    display: block;
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 768px) {
    .gdpr-banner-content {
        padding: 15px 20px;
    }
    
    .gdpr-banner-text h3 {
        font-size: 16px;
    }
    
    .gdpr-banner-text p {
        font-size: 13px;
    }
    
    .gdpr-banner-buttons {
        flex-direction: column;
    }
    
    .gdpr-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* ========== ANIMATION ========== */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#gdpr-cookie-banner {
    animation: slideUp 0.4s ease-out;
}

/* ========== ACCESSIBILITY ========== */
.gdpr-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.gdpr-toggle-item:hover {
    background-color: #f9f9f9;
}

/* ========== FLOATING PRIVACY BUTTON ========== */
#gdpr-privacy-button {
    position: fixed;
    bottom: 0px;
    right: 80px;
    background-color: #007bffd4;
    color: #ffffff;
    border: none;
    border-radius: 15px 15px 0px 0px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    z-index: 999998;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: none; /* מוסתר כברירת מחדל */
    direction: rtl;
}

#gdpr-privacy-button:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

#gdpr-privacy-button:active {
    transform: translateY(0);
}

#gdpr-privacy-button.visible {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* אנימציה להופעת הכפתור */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* התאמה למובייל */
@media screen and (max-width: 768px) {
    #gdpr-privacy-button {
        bottom: 0px;
        right: 80px;
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 10px 10px 0px 0px;
    }
}

/* ========== PRINT ========== */
@media print {
    #gdpr-cookie-banner {
        display: none !important;
    }

    #gdpr-privacy-button {
        display: none !important;
    }
}