/* Cookie Consent Banner - Cute & Modern */

.cookie-consent-wrapper {
    position: fixed;
    bottom: -500px; /* Start hidden below screen */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-consent-wrapper.show {
    bottom: 0; /* Slide up to visible */
}

.cookie-consent-wrapper.hide {
    bottom: -500px; /* Slide down to hidden */
}

.cookie-consent-banner {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #F5EEE9 100%);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 30px 40px;
    box-shadow: 0 -10px 40px rgba(173, 157, 138, 0.15);
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid rgba(227, 114, 92, 0.1);
}

/* Cookie Icon Animation */
.cookie-icon {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #F5A184 0%, #E3725C 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 8px 20px rgba(227, 114, 92, 0.3);
    animation: bounce 2s ease-in-out infinite;
    border: 3px solid #fff;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.cookie-content {
    text-align: center;
    margin-bottom: 25px;
}

.cookie-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--mocha-color);
    margin-bottom: 10px;
    font-family: var(--font-inter);
}

.cookie-content p {
    font-size: 15px;
    line-height: 24px;
    color: var(--main-color);
    margin: 0;
    font-family: var(--font-karla);
}

.cookie-content a {
    color: var(--orange-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.cookie-content a:hover {
    color: var(--yellow-color);
    border-bottom: 1px solid var(--yellow-color);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-inter);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cookie-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #F5A184 0%, #E3725C 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(227, 114, 92, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 114, 92, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--mocha-color);
    border: 2px solid var(--main-color);
}

.cookie-btn-decline:hover {
    background: var(--grey-color);
    border-color: var(--orange-color);
    color: var(--orange-color);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--main-color);
    padding: 12px 20px;
    font-size: 14px;
}

.cookie-btn-settings:hover {
    color: var(--orange-color);
}

/* Tablet Responsive */
@media (max-width: 1040px) {
    .cookie-consent-banner {
        max-width: 550px;
        padding: 28px 30px;
    }

    .cookie-icon {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }

    .cookie-content h3 {
        font-size: 20px;
    }

    .cookie-content p {
        font-size: 15px;
        line-height: 24px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 25px 20px 30px 20px;
        margin: 0;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }

    .cookie-icon {
        width: 55px;
        height: 55px;
        font-size: 28px;
        top: -27px;
    }

    .cookie-content h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .cookie-content p {
        font-size: 14px;
        line-height: 21px;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    .cookie-btn-settings {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Decorative elements smaller on mobile */
    .cookie-consent-banner::before,
    .cookie-consent-banner::after {
        font-size: 16px;
        opacity: 0.08;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 18px 12px 22px 12px;
    }

    .cookie-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
        top: -25px;
    }

    .cookie-content h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .cookie-content p {
        font-size: 13px;
        line-height: 20px;
    }

    .cookie-btn {
        padding: 11px 18px;
        font-size: 13px;
    }
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
    opacity: 1;
}

.cookie-settings-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: scale(1);
}

@media (max-width: 768px) {
    .cookie-settings-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .cookie-settings-content {
        padding: 30px 20px;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        width: 100%;
        max-width: 100%;
    }

    .cookie-settings-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .cookie-category {
        padding: 15px;
        margin-bottom: 15px;
    }

    .cookie-category-title {
        font-size: 15px;
    }

    .cookie-category-desc {
        font-size: 13px;
        line-height: 20px;
    }

    .cookie-settings-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .cookie-settings-actions .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-settings-content {
        padding: 25px 15px;
    }

    .cookie-settings-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .cookie-category {
        padding: 12px;
        margin-bottom: 12px;
    }

    .cookie-category-title {
        font-size: 14px;
    }

    .cookie-category-desc {
        font-size: 12px;
        line-height: 18px;
    }
}

.cookie-settings-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--main-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-settings-close:hover {
    background: var(--grey-color);
    color: var(--orange-color);
    transform: rotate(90deg);
}

.cookie-settings-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--mocha-color);
    margin-bottom: 20px;
    font-family: var(--font-inter);
}

.cookie-category {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--grey-color);
    border-radius: 12px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--mocha-color);
    font-family: var(--font-inter);
}

.cookie-category-desc {
    font-size: 14px;
    line-height: 22px;
    color: var(--main-color);
    margin: 0;
}

/* Custom Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.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.4s;
    border-radius: 34px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #F5A184 0%, #E3725C 100%);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.cookie-settings-actions .cookie-btn {
    flex: 1;
}

/* Decorative Elements */
.cookie-consent-banner::before {
    content: '🍪';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 20px;
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

.cookie-consent-banner::after {
    content: '🍪';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
    opacity: 0.1;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(10deg);
    }
}

/* Scrollbar for settings modal */
.cookie-settings-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-settings-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cookie-settings-content::-webkit-scrollbar-thumb {
    background: var(--orange-color);
    border-radius: 10px;
}

.cookie-settings-content::-webkit-scrollbar-thumb:hover {
    background: var(--yellow-color);
}

