/* ============================================
   COOKIE CONSENT STYLES
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 9999;
    padding: 25px;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    animation: slideUp 0.5s ease forwards;
    display: none;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-content {
    flex: 1;
    min-width: 300px;
}

.cookie-content h4 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-content h4 i {
    color: #3b82f6;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-settings-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
    transition: all 0.3s ease;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
}

.cookie-settings-link:hover {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.2);
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 180px;
    backdrop-filter: blur(10px);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cookie-btn-save {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    width: 100%;
}

.cookie-btn-save:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.cookie-modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(30px);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: translateY(20px);
    animation: modalSlideUp 0.4s ease forwards;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h3 {
    color: white;
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-modal-header i {
    color: #3b82f6;
}

.cookie-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.cookie-settings-options {
    padding: 30px;
}

.cookie-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cookie-setting-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-setting-item:last-child {
    margin-bottom: 0;
}

.cookie-setting-item h4 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 16px;
}

.cookie-setting-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 34px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background-color: #10b981;
    border-color: rgba(16, 185, 129, 0.5);
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #10b981, 0 0 0 4px rgba(16, 185, 129, 0.2);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Cookie Styles */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .cookie-content {
        min-width: auto;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 0;
    }
    
    .cookie-modal-content {
        max-width: 95%;
    }
    
    .cookie-modal-header,
    .cookie-settings-options,
    .cookie-modal-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 20px;
    }
    
    .cookie-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .cookie-setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}