/* === BRACHATNG COOKIE CONSENT STYLES - CZYSTE KOLORY === */

/* === COOKIE CONSENT BANNER === */
.brachat-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #F5F1ED 0%, #ffffff 100%);
    border-top: 3px solid #8A464B;
    box-shadow: 0 -8px 32px rgba(138, 70, 75, 0.12);
    z-index: 999999;
    padding: 20px;
    display: none;
    font-family: 'Montserrat', sans-serif;
    animation: slideUpBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpBounce {
    0% { transform: translateY(100%); opacity: 0; }
    60% { transform: translateY(-8px); opacity: 0.8; box-shadow: 0 -12px 40px rgba(138, 70, 75, 0.15); }
    100% { transform: translateY(0); opacity: 1; box-shadow: 0 -8px 32px rgba(138, 70, 75, 0.12); }
}

.brachat-cookie-banner.show {
    display: block;
}

.brachat-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.brachat-banner-text {
    flex: 1;
    min-width: 320px;
}

.brachat-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: #322D29;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brachat-banner-description {
    font-size: 14px;
    color: #8C7A75;
    line-height: 1.6;
    margin: 0;
}

.brachat-banner-description a {
    color: #8A464B;
    text-decoration: underline;
}

.brachat-banner-description a:hover {
    color: #322D29;
}

.brachat-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.brachat-cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Mulish', sans-serif;
    position: relative;
    overflow: hidden;
}

.brachat-cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.brachat-cookie-btn:hover::before {
    left: 100%;
}

.brachat-btn-accept {
    background: linear-gradient(135deg, #AC7C6B, #8A464B);
    color: white;
    box-shadow: 0 4px 12px rgba(138, 70, 75, 0.3);
}

.brachat-btn-accept:hover {
    background: linear-gradient(135deg, #8A464B, #322D29);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(138, 70, 75, 0.4);
}

.brachat-btn-reject {
    background: linear-gradient(135deg, #8A464B, #5A2F34);
    color: white;
    box-shadow: 0 4px 12px rgba(138, 70, 75, 0.3);
}

.brachat-btn-reject:hover {
    background: linear-gradient(135deg, #5A2F34, #322D29);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(138, 70, 75, 0.4);
}

.brachat-btn-settings {
    background: linear-gradient(135deg, #8C7A75, #5A4D49);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.3);
}

.brachat-btn-settings:hover {
    background: linear-gradient(135deg, #5A4D49, #3E3734);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 102, 102, 0.4);
}

/* === COOKIE PREFERENCES MODAL === */
.brachat-preferences-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000000;
    display: none;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.brachat-preferences-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(138, 70, 75, 0.25);
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8) rotateX(10deg); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotateX(0deg); }
}

.brachat-preferences-header {
    background: linear-gradient(135deg, #8A464B, #AC7C6B);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brachat-preferences-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brachat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.brachat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.brachat-preferences-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.brachat-preferences-body::-webkit-scrollbar {
    width: 6px;
}

.brachat-preferences-body::-webkit-scrollbar-track {
    background: #F5F1ED;
    border-radius: 3px;
}

.brachat-preferences-body::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.brachat-preferences-body::-webkit-scrollbar-thumb:hover {
    background: #8A464B;
}

/* === COOKIE CATEGORIES === */
.brachat-cookie-category {
    margin-bottom: 20px;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.brachat-cookie-category:hover {
    box-shadow: 0 4px 12px rgba(138, 70, 75, 0.08);
    border-color: #8A464B;
}

.brachat-category-header {
    padding: 20px;
    background: linear-gradient(135deg, #F5F1ED, #f0f0f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.brachat-category-header:hover {
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}

.brachat-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #322D29;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brachat-category-icon {
    font-size: 18px;
}

/* === CUSTOM TOGGLE SWITCH === */
.brachat-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background: #d0d0d0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brachat-toggle.active {
    background: linear-gradient(135deg, #AC7C6B, #8A464B);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(138, 70, 75, 0.2);
}

.brachat-toggle.disabled {
    background: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

.brachat-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.brachat-toggle.active .brachat-toggle-thumb {
    transform: translateX(24px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* === CATEGORY DETAILS === */
.brachat-category-details {
    padding: 0;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brachat-category-details.expanded {
    padding: 20px;
    max-height: 300px;
    border-top: 1px solid #d0d0d0;
}

.brachat-category-description {
    font-size: 14px;
    color: #8C7A75;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.brachat-cookie-list {
    background: linear-gradient(135deg, #F5F1ED, #f0f0f0);
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #8A464B;
}

.brachat-cookie-item {
    font-size: 13px;
    color: #322D29;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brachat-cookie-item:last-child {
    margin-bottom: 0;
}

.brachat-cookie-item::before {
    content: '🍪';
    font-size: 12px;
}

/* === PREFERENCES FOOTER === */
.brachat-preferences-footer {
    padding: 24px;
    border-top: 1px solid #d0d0d0;
    background: linear-gradient(135deg, #F5F1ED, #ffffff);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* === FLOATING CONSENT BUTTON === */
.brachat-floating-btn {
    background: linear-gradient(135deg, #8A464B, #322D29);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(138, 70, 75, 0.4);
    z-index: 999998;
    display: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Mulish', sans-serif;
}

.brachat-floating-btn:hover {
    background: linear-gradient(135deg, #322D29, #8A464B);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(138, 70, 75, 0.5);
}

.brachat-floating-btn.show {
    display: block;
    animation: floatIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes floatIn {
    0% { transform: translateY(100px) scale(0); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .brachat-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .brachat-banner-actions {
        justify-content: center;
        flex-direction: column;
    }

    .brachat-cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .brachat-preferences-modal {
        width: 98%;
        max-height: 90vh;
    }

    .brachat-preferences-header {
        padding: 20px;
    }

    .brachat-preferences-title {
        font-size: 18px;
    }

    .brachat-preferences-body {
        padding: 20px;
        max-height: 65vh;
    }

    .brachat-category-header {
        padding: 16px;
    }

    .brachat-category-details.expanded {
        padding: 16px;
    }

    .brachat-floating-btn {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
    }

    .brachat-floating-btn:hover {
        transform: translateX(-50%) translateY(-3px) scale(1.05);
    }
}

@media (max-width: 480px) {
    .brachat-cookie-banner {
        padding: 16px;
    }

    .brachat-banner-title {
        font-size: 16px;
    }

    .brachat-banner-description {
        font-size: 13px;
    }

    .brachat-cookie-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .brachat-cookie-banner {
        background: linear-gradient(135deg, #322D29 0%, #1a1a1a 100%);
        border-top-color: #8A464B;
    }

    .brachat-banner-title {
        color: #F5F1ED;
    }

    .brachat-banner-description {
        color: #cccccc;
    }

    .brachat-preferences-modal {
        background: #322D29;
        color: #F5F1ED;
    }

    .brachat-category-header {
        background: linear-gradient(135deg, #333333, #404040);
    }

    .brachat-category-title {
        color: #F5F1ED;
    }

    .brachat-category-details {
        background: #322D29;
        border-top-color: #8A464B;
    }

    .brachat-category-description {
        color: #cccccc;
    }

    .brachat-cookie-list {
        background: linear-gradient(135deg, #333333, #404040);
        border-left-color: #AC7C6B;
    }

    .brachat-cookie-item {
        color: #e0e0e0;
    }

    .brachat-preferences-footer {
        background: linear-gradient(135deg, #333333, #322D29);
        border-top-color: #8A464B;
    }
}