/* Cookie Consent Banner & Modal Styles */
/* Simit Sarayi Brand Colors */

/* ==================== Cookie Banner ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 30px;
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    font-family: 'gothambook', sans-serif;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 13px;
    font-family: 'gothammedium', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #a4a096;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #8a8579;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 160, 150, 0.4);
}

.cookie-btn-reject {
    background: #fff;
    color: #333;
    border: 1px solid #817c73;
}

.cookie-btn-reject:hover {
    background: #f5f5f5;
    border-color: #666;
}

.cookie-btn-preferences {
    background: transparent;
    color: #a4a096;
    border: 1px solid #a4a096;
}

.cookie-btn-preferences:hover {
    background: #a4a096;
    color: #fff;
}

/* ==================== Cookie Modal ==================== */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    background: #a4a096;
    color: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-family: 'gothambold', sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-modal-header h3::before {
    content: "\2699";
    font-size: 22px;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.cookie-modal-close:hover {
    opacity: 1;
}

/* ==================== Tabs ==================== */
.cookie-tabs {
    display: flex;
    border-bottom: 2px solid #e8e8e8;
}

.cookie-tab {
    flex: 1;
    padding: 15px 20px;
    background: #f8f8f8;
    border: none;
    font-size: 13px;
    font-family: 'gothammedium', sans-serif;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cookie-tab:hover {
    background: #f0f0f0;
}

.cookie-tab.active {
    background: #fff;
    color: #a4a096;
}

.cookie-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #a4a096;
}

/* ==================== Tab Content ==================== */
.cookie-tab-content {
    display: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.cookie-tab-content.active {
    display: block;
}

/* Custom scrollbar */
.cookie-tab-content::-webkit-scrollbar {
    width: 6px;
}

.cookie-tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cookie-tab-content::-webkit-scrollbar-thumb {
    background: #a4a096;
    border-radius: 3px;
}

/* ==================== Cookie Categories ==================== */
.cookie-category {
    border-bottom: 1px solid #e8e8e8;
    padding: 20px 25px;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cookie-category-title {
    font-size: 15px;
    font-family: 'gothambold', sans-serif;
    color: #333;
    margin: 0;
}

.cookie-category-description {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* ==================== Toggle Switch ==================== */
.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #a4a096;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #a4a096;
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==================== Privacy Text Tab ==================== */
.cookie-privacy-content {
    padding: 25px;
}

.cookie-privacy-content h4 {
    font-size: 16px;
    font-family: 'gothambold', sans-serif;
    color: #333;
    margin: 0 0 15px 0;
}

.cookie-privacy-content p {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 15px;
}

.cookie-privacy-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.cookie-privacy-content li {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 8px;
}

/* ==================== Modal Footer ==================== */
.cookie-modal-footer {
    padding: 20px 25px;
    background: #f8f8f8;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e8e8e8;
}

.cookie-btn-reject-all {
    background: #fff;
    color: #333;
    border: 1px solid #817c73;
    padding: 12px 24px;
}

.cookie-btn-reject-all:hover {
    background: #f0f0f0;
}

.cookie-btn-save {
    background: #a4a096;
    color: #fff;
    padding: 12px 28px;
}

.cookie-btn-save:hover {
    background: #8a8579;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px 20px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .cookie-banner-text {
        font-size: 13px;
        text-align: center;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .cookie-modal {
        max-height: 85vh;
        margin: 10px;
    }

    .cookie-modal-header {
        padding: 15px 20px;
    }

    .cookie-modal-header h3 {
        font-size: 16px;
    }

    .cookie-tabs {
        flex-direction: column;
    }

    .cookie-tab {
        padding: 12px 15px;
        text-align: left;
    }

    .cookie-tab.active::after {
        display: none;
    }

    .cookie-tab.active {
        border-left: 3px solid #a4a096;
    }

    .cookie-category {
        padding: 15px 20px;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 12px;
    }

    .cookie-modal-footer {
        flex-direction: column;
        padding: 15px 20px;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px 15px;
    }

    .cookie-banner-text {
        font-size: 12px;
    }

    .cookie-modal-header h3 {
        font-size: 14px;
    }

    .cookie-category-title {
        font-size: 14px;
    }

    .cookie-category-description {
        font-size: 12px;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .cookie-banner-content,
html[lang="ar"] .cookie-banner-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .cookie-category-header,
html[lang="ar"] .cookie-category-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .cookie-modal-footer,
html[lang="ar"] .cookie-modal-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .cookie-toggle-slider:before,
html[lang="ar"] .cookie-toggle-slider:before {
    left: auto;
    right: 3px;
}

[dir="rtl"] .cookie-toggle input:checked + .cookie-toggle-slider:before,
html[lang="ar"] .cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(-24px);
}
