/* Cookie Consent Banner - Base Styles */
.cookie-consent-banner {
    position: fixed;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s ease;
    display: none;
    direction: rtl;
    text-align: right;
}

.cookie-consent-banner.show {
    display: block;
    animation: slideIn 0.4s ease-out;
}

/* Bottom Sticky Mode */
.cookie-consent-banner[data-mode="bottom-sticky"] {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
}

/* Bubble Left Mode */
.cookie-consent-banner[data-mode="bubble-left"] {
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Bubble Right Mode */
.cookie-consent-banner[data-mode="bubble-right"] {
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Cookie Consent Content */
.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-consent-banner[data-mode="bottom-sticky"] .cookie-consent-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-consent-text a:hover {
    text-decoration: none;
}

/* Cookie Buttons */
.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent-banner[data-mode="bottom-sticky"] .cookie-consent-buttons {
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: #e0a605;
    color: #ffffff;
}

.cookie-btn-accept {
    background: #e0a605;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: #c98f04;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(224, 166, 5, 0.3);
}

.cookie-btn-customize {
    background: #e0a605;
    color: #ffffff;
}

.cookie-btn-customize:hover {
    background: #c98f04;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(224, 166, 5, 0.3);
}

.cookie-btn-deny {
    background: #e0a605;
    color: #ffffff;
}

.cookie-btn-deny:hover {
    background: #c98f04;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(224, 166, 5, 0.3);
}

/* Modal Styles */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: #ffffff;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    direction: rtl;
    text-align: right;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 24px;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    color: #1f2937;
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 25px;
}

.cookie-modal-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Cookie Options */
.cookie-option {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.cookie-option:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.cookie-option-header {
    margin-bottom: 10px;
}

.cookie-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cookie-checkbox-label input[type="checkbox"] {
    display: none;
}

.cookie-checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #ffffff;
}

.cookie-checkbox-label input[type="checkbox"]:checked + .cookie-checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.cookie-checkbox-label input[type="checkbox"]:checked + .cookie-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

.cookie-checkbox-label input[type="checkbox"]:disabled + .cookie-checkbox-custom {
    background: #e5e7eb;
    border-color: #d1d5db;
    cursor: not-allowed;
}

.cookie-checkbox-label input[type="checkbox"]:disabled:checked + .cookie-checkbox-custom {
    background: #9ca3af;
    border-color: #9ca3af;
}

.cookie-option-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.cookie-option-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding-left: 36px;
}

/* Modal Footer */
.cookie-modal-footer {
    padding: 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner[data-mode="bottom-sticky"] .cookie-consent-content {
        flex-direction: column;
    }

    .cookie-consent-banner[data-mode="bubble-left"],
    .cookie-consent-banner[data-mode="bubble-right"] {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
    }

    .cookie-consent-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 0;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-modal-header {
        padding: 20px;
    }

    .cookie-modal-header h2 {
        font-size: 20px;
    }

    .cookie-modal-body {
        padding: 20px;
    }

    .cookie-modal-footer {
        padding: 20px;
        flex-direction: column-reverse;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .cookie-option {
        padding: 15px;
    }

    .cookie-option-title {
        font-size: 15px;
    }

    .cookie-option-description {
        font-size: 13px;
    }
}
