/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(36, 94, 244, 0.15);
    z-index: 10000;
    max-width: 380px;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Inter Tight', sans-serif;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(150%);
}

.cookie-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.cookie-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #245ef4 0%, #5582f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.cookie-icon::before {
    content: "🍪";
    font-size: 24px;
    filter: grayscale(0%) brightness(2);
    position: relative;
    z-index: 2;
}

.cookie-icon::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: cookieShine 3s infinite;
}

@keyframes cookieShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.cookie-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #232323;
    margin: 0;
    flex: 1;
}

.cookie-content {
    margin-bottom: 1.2rem;
    color: #232323;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.5;
}

.cookie-content p {
    margin: 0 0 0.5rem 0;
}

.cookie-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cookie-link {
    color: #245ef4;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.cookie-link:hover {
    color: #5582f6;
    border-bottom-color: #5582f6;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.4rem 0.8rem;
    border: 2px solid #245ef4;
    border-radius: 1.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.cookie-btn-accept {
    background-color: #245ef4;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: #5582f6;
    border-color: #5582f6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 94, 244, 0.3);
}

.cookie-btn-decline {
    background-color: transparent;
    color: #245ef4;
}

.cookie-btn-decline:hover {
    background-color: #245ef4;
    color: #ffffff;
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background-color: transparent;
    color: #245ef4;
    border-color: #edefea;
}

.cookie-btn-settings:hover {
    background-color: #edefea;
    color: #464845;
    border-color: #edefea;
}

.cookie-settings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #edefea;
    display: none;
}

.cookie-settings.show {
    display: block;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.setting-label {
    font-size: 0.85rem;
    color: #232323;
    flex: 1;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #edefea;
    border-radius: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.toggle-switch input:checked ~ .toggle-switch {
    background-color: #245ef4;
}

.toggle-switch.checked {
    background-color: #245ef4;
}

.toggle-switch.checked .toggle-slider {
    transform: translateX(24px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .cookie-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.cookie-modal-content {
    background: #ffffff;
    border-radius: 2rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.cookie-modal-content::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.cookie-modal-content {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #edefea;
}

.cookie-modal-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #232323;
    margin: 0;
}

.cookie-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #edefea;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #464845;
}

.cookie-modal-close:hover {
    background-color: #245ef4;
    color: #ffffff;
    transform: rotate(90deg);
}

.cookie-modal-body {
    margin-bottom: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
}

.cookie-category-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #232323;
    margin-bottom: 0.5rem;
}

.cookie-category-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #edefea;
}
