/* Cookie Consent Banner Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.cookie-consent.show {
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.cookie-consent-text {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
}

.cookie-consent-text p {
    margin: 0;
    display: inline;
}

.cookie-consent-link {
    color: #00bfff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.cookie-consent-link:hover {
    color: #00d4ff;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-btn-accept-all {
    background-color: #00bfff;
    color: #000;
    flex: 1;
    min-width: 150px;
}

.cookie-btn-accept-all:hover {
    background-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 191, 255, 0.3);
}

.cookie-btn-reject {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    flex: 1;
    min-width: 150px;
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background-color: transparent;
    color: #00bfff;
    border: 1px solid #00bfff;
    flex: 1;
    min-width: 150px;
}

.cookie-btn-settings:hover {
    background-color: rgba(0, 191, 255, 0.1);
    transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.cookie-settings-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-settings-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-settings-header {
    color: #1a1a2e;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 24px;
}

.cookie-settings-category {
    margin-bottom: 25px;
}

.cookie-settings-category h3 {
    color: #1a1a2e;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.cookie-settings-category p {
    color: #666;
    font-size: 13px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.cookie-toggle-label {
    color: #333;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    background-color: #ccc;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
    padding: 0;
}

.cookie-toggle-switch.active {
    background-color: #00bfff;
}

.cookie-toggle-switch::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.cookie-toggle-switch.active::after {
    left: 24px;
}

.cookie-toggle-switch:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-settings-footer {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.cookie-btn-save {
    flex: 1;
    background-color: #00bfff;
    color: #000;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.cookie-btn-save:hover {
    background-color: #00d4ff;
    transform: translateY(-2px);
}

.cookie-btn-cancel {
    flex: 1;
    background-color: #f0f0f0;
    color: #333;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.cookie-btn-cancel:hover {
    background-color: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 15px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        min-width: auto;
    }

    .cookie-settings-content {
        padding: 20px;
        max-width: 100%;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .cookie-btn-save,
    .cookie-settings-footer .cookie-btn-cancel {
        width: 100%;
    }
}
